Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001055/0.001055, allocations: 195 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007992/0.0007992, allocations: 103.2 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002017/0.0002017, allocations: 12 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.1824, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.003018/0.1855, allocations: 4.591 MB / 412.1 MB, free: 23.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00576/0.1912, allocations: 8.311 MB / 420.4 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002616/0.1915, allocations: 23.88 kB / 420.4 MB, free: 14.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004764/0.192, allocations: 302.4 kB / 420.7 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001034/0.193, allocations: 0.6638 MB / 421.4 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006409/0.1937, allocations: 438.1 kB / 421.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001418/0.1951, allocations: 1.62 MB / 423.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.1953, allocations: 135.1 kB / 423.6 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002163/0.1955, allocations: 278.7 kB / 423.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002289/0.1958, allocations: 294.2 kB / 424.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.249e-05/0.1958, allocations: 16 kB / 424.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000828/0.1967, allocations: 0.5852 MB / 424.7 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.065e-05/0.1967, allocations: 91.38 kB / 424.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.417e-05/0.1968, allocations: 201.2 kB / 425 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000541/0.1974, allocations: 0.8608 MB / 425.9 MB, free: 9.383 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1974, allocations: 0 / 425.9 MB, free: 9.383 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1974, allocations: 3.938 kB / 425.9 MB, free: 9.379 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.1974, allocations: 0 / 425.9 MB, free: 9.379 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001186/0.1986, allocations: 1.155 MB / 427 MB, free: 8.172 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.07e-05/0.1986, allocations: 12.03 kB / 427 MB, free: 8.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002217/0.1989, allocations: 134.5 kB / 427.2 MB, free: 8.027 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008499/0.1997, allocations: 0.8129 MB / 428 MB, free: 7.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.1997, allocations: 16.56 kB / 428 MB, free: 7.145 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.848e-05/0.1998, allocations: 24 kB / 428 MB, free: 7.121 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000397/0.2002, allocations: 315.6 kB / 428.3 MB, free: 6.805 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.2002, allocations: 0 / 428.3 MB, free: 6.805 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/0.2002, allocations: 12 kB / 428.3 MB, free: 6.793 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.2003, allocations: 7.984 kB / 428.4 MB, free: 6.785 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003327/0.2006, allocations: 234.1 kB / 428.6 MB, free: 6.555 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001261/0.2019, allocations: 1.194 MB / 429.8 MB, free: 5.289 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002783/0.2022, allocations: 198.6 kB / 430 MB, free: 5.086 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002429/0.2024, allocations: 225.2 kB / 430.2 MB, free: 4.859 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006591/0.209, allocations: 8.906 MB / 439.1 MB, free: 10.49 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.209, allocations: 34.56 kB / 439.1 MB, free: 10.45 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.433e-06/0.2091, allocations: 0 / 439.1 MB, free: 10.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.00153/0.2106, allocations: 0.6708 MB / 439.8 MB, free: 9.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.2106, allocations: 81.11 kB / 439.9 MB, free: 9.652 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007665/0.2114, allocations: 0.7831 MB / 440.7 MB, free: 8.852 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.252e-05/0.2115, allocations: 33.7 kB / 440.7 MB, free: 8.812 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003133/0.2118, allocations: 448.6 kB / 441.1 MB, free: 8.371 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.865e-05/0.2118, allocations: 70.91 kB / 441.2 MB, free: 8.301 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.317e-05/0.2119, allocations: 8 kB / 441.2 MB, free: 8.293 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.774e-05/0.212, allocations: 317.9 kB / 441.5 MB, free: 7.977 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001318/0.2121, allocations: 76.2 kB / 441.6 MB, free: 7.902 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001819/0.2123, allocations: 145.9 kB / 441.7 MB, free: 7.727 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.2125, allocations: 83.97 kB / 441.8 MB, free: 7.645 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2125, allocations: 0 / 441.8 MB, free: 7.645 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005464/0.213, allocations: 412.9 kB / 442.2 MB, free: 7.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.2131, allocations: 8 kB / 442.2 MB, free: 7.223 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.246e-05/0.2131, allocations: 12 kB / 442.2 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003319/0.2134, allocations: 151.7 kB / 442.4 MB, free: 7.062 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.2136, allocations: 31.92 kB / 442.4 MB, free: 7.031 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005718/0.2142, allocations: 0.7145 MB / 443.1 MB, free: 6.293 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002101/0.2144, allocations: 27.84 kB / 443.2 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.968e-05/0.2144, allocations: 20 kB / 443.2 MB, free: 6.246 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0002159/0.2147, allocations: 193.8 kB / 443.4 MB, free: 6.047 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.2148, allocations: 106.7 kB / 443.5 MB, free: 5.941 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007514/0.2155, allocations: 423.3 kB / 443.9 MB, free: 5.516 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.2155, allocations: 4 kB / 443.9 MB, free: 5.512 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.2156, allocations: 0 / 443.9 MB, free: 5.512 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.2156, allocations: 0 / 443.9 MB, free: 5.512 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005059/0.2161, allocations: 0.5073 MB / 444.4 MB, free: 4.957 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.739e-05/0.2161, allocations: 16 kB / 444.4 MB, free: 4.941 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.2162, allocations: 19.98 kB / 444.4 MB, free: 4.922 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002508/0.2165, allocations: 132.8 kB / 444.6 MB, free: 4.789 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.2165, allocations: 4 kB / 444.6 MB, free: 4.785 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005297/0.217, allocations: 0.7083 MB / 445.3 MB, free: 4.051 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.217, allocations: 0 / 445.3 MB, free: 4.051 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005212/0.2176, allocations: 460.6 kB / 445.7 MB, free: 3.582 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001573/0.2177, allocations: 171.8 kB / 445.9 MB, free: 3.395 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.979e-05/0.2178, allocations: 12.06 kB / 445.9 MB, free: 3.383 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001996/0.218, allocations: 8 kB / 445.9 MB, free: 3.375 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.61e-05/0.2181, allocations: 11.98 kB / 445.9 MB, free: 3.363 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-05/0.2181, allocations: 8 kB / 445.9 MB, free: 3.355 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005354/0.2186, allocations: 0.5344 MB / 446.5 MB, free: 2.812 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2186, allocations: 0 / 446.5 MB, free: 2.812 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004583/0.2191, allocations: 195.7 kB / 446.7 MB, free: 2.621 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004035/0.2195, allocations: 280 kB / 446.9 MB, free: 2.336 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005254/0.2201, allocations: 287.7 kB / 447.2 MB, free: 2.043 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2201, allocations: 0 / 447.2 MB, free: 2.043 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002656/0.2203, allocations: 183.2 kB / 447.4 MB, free: 1.855 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006493/0.221, allocations: 167 kB / 447.6 MB, free: 1.695 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.2226, allocations: 1.425 MB / 449 MB, free: 240 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003906/0.223, allocations: 0.9377 MB / 449.9 MB, free: 15.27 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.169e-05/0.2231, allocations: 51.44 kB / 450 MB, free: 15.22 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2231, allocations: 0 / 450 MB, free: 15.22 MB / 330.7 MB Notification: Performance of Templates: time 0.01547/0.2386, allocations: 14.31 MB / 464.3 MB, free: 0.9336 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches