Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001082/0.001082, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.253/1.253, allocations: 205.1 MB / 223.7 MB, free: 8.488 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009747/0.000975, allocations: 99.72 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007965/0.0007967, allocations: 47.94 kB / 327.2 MB, free: 316 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1945/0.1953, allocations: 46.61 MB / 373.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.0032/0.1986, allocations: 2.755 MB / 376.6 MB, free: 43.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008247/0.1994, allocations: 0.7199 MB / 377.3 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.1995, allocations: 7.656 kB / 377.3 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001178/0.1997, allocations: 27.61 kB / 377.3 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001331/0.1998, allocations: 80.53 kB / 377.4 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001931/0.2, allocations: 82.59 kB / 377.5 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002557/0.2003, allocations: 343.4 kB / 377.8 MB, free: 42.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.2004, allocations: 67.88 kB / 377.9 MB, free: 42.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001166/0.2005, allocations: 120.4 kB / 378 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.2007, allocations: 141.3 kB / 378.2 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.231e-05/0.2007, allocations: 17.56 kB / 378.2 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.549e-05/0.2008, allocations: 18.5 kB / 378.2 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.404e-05/0.2008, allocations: 49.36 kB / 378.2 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.2009, allocations: 142 kB / 378.4 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002331/0.2012, allocations: 305.8 kB / 378.7 MB, free: 42.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2012, allocations: 5.062 kB / 378.7 MB, free: 42.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.2012, allocations: 0 / 378.7 MB, free: 42.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.2012, allocations: 0 / 378.7 MB, free: 42.12 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001002/0.2022, allocations: 0.6365 MB / 379.3 MB, free: 41.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.2023, allocations: 9.969 kB / 379.3 MB, free: 41.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.279e-05/0.2023, allocations: 31.08 kB / 379.4 MB, free: 41.53 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002366/0.2026, allocations: 275.7 kB / 379.6 MB, free: 41.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.2026, allocations: 17.94 kB / 379.6 MB, free: 41.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.219e-05/0.2026, allocations: 17.34 kB / 379.7 MB, free: 41.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005208/0.2032, allocations: 254.6 kB / 379.9 MB, free: 41.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.2032, allocations: 0 / 379.9 MB, free: 41.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.083e-05/0.2032, allocations: 6.188 kB / 379.9 MB, free: 41.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.433e-06/0.2032, allocations: 5.469 kB / 379.9 MB, free: 41.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006837/0.2039, allocations: 262.2 kB / 380.2 MB, free: 40.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001185/0.2051, allocations: 0.8612 MB / 381 MB, free: 40.22 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006494/0.2058, allocations: 231.4 kB / 381.3 MB, free: 40.1 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002621/0.206, allocations: 97.84 kB / 381.4 MB, free: 40.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.2061, allocations: 1.219 kB / 381.4 MB, free: 40.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003706/0.2064, allocations: 177.6 kB / 381.5 MB, free: 39.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/0.2065, allocations: 0 / 381.5 MB, free: 39.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.001732/0.2082, allocations: 0.5886 MB / 382.1 MB, free: 39.56 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/0.2082, allocations: 113.3 kB / 382.2 MB, free: 39.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001982/0.2084, allocations: 256.5 kB / 382.5 MB, free: 39.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.2085, allocations: 31.14 kB / 382.5 MB, free: 39.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.695e-05/0.2085, allocations: 170.2 kB / 382.7 MB, free: 39.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.726e-05/0.2086, allocations: 49.44 kB / 382.7 MB, free: 39.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.903e-05/0.2086, allocations: 41.27 kB / 382.8 MB, free: 38.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.65e-05/0.2087, allocations: 336.2 kB / 383.1 MB, free: 38.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002844/0.209, allocations: 101.4 kB / 383.2 MB, free: 38.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003163/0.2093, allocations: 169.6 kB / 383.4 MB, free: 38.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005252/0.2098, allocations: 245.4 kB / 383.6 MB, free: 38.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2099, allocations: 5.031 kB / 383.6 MB, free: 38.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0009377/0.2108, allocations: 416.8 kB / 384 MB, free: 38.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.2108, allocations: 35.36 kB / 384.1 MB, free: 38.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.2108, allocations: 2.375 kB / 384.1 MB, free: 38.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004214/0.2113, allocations: 109.9 kB / 384.2 MB, free: 37.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.2114, allocations: 37.91 kB / 384.2 MB, free: 37.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.2129, allocations: 1.691 MB / 385.9 MB, free: 36.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002632/0.2132, allocations: 50.03 kB / 385.9 MB, free: 36.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.039e-05/0.2132, allocations: 7.188 kB / 385.9 MB, free: 36.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000278/0.2135, allocations: 181.5 kB / 386.1 MB, free: 36.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002523/0.2137, allocations: 152.3 kB / 386.3 MB, free: 36.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004459/0.2142, allocations: 223.4 kB / 386.5 MB, free: 35.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.864e-06/0.2142, allocations: 1.219 kB / 386.5 MB, free: 35.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0006557/0.2149, allocations: 338.8 kB / 386.8 MB, free: 35.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.2149, allocations: 31.55 kB / 386.9 MB, free: 35.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.404e-06/0.2149, allocations: 2.406 kB / 386.9 MB, free: 35.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.722e-05/0.215, allocations: 43.86 kB / 386.9 MB, free: 35.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/0.2152, allocations: 37.31 kB / 386.9 MB, free: 35.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007872/0.216, allocations: 1.542 MB / 388.5 MB, free: 34.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000263/0.2162, allocations: 45.78 kB / 388.5 MB, free: 34.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.574e-05/0.2163, allocations: 10.95 kB / 388.5 MB, free: 34.08 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 7.291e-05/0.2163, allocations: 194.7 kB / 388.7 MB, free: 33.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.009e-05/0.2164, allocations: 24.06 kB / 388.7 MB, free: 33.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.698e-05/0.2164, allocations: 29.83 kB / 388.8 MB, free: 33.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.2164, allocations: 0 / 388.8 MB, free: 33.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-06/0.2164, allocations: 0 / 388.8 MB, free: 33.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.2164, allocations: 4.188 kB / 388.8 MB, free: 33.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000166/0.2166, allocations: 297.4 kB / 389.1 MB, free: 33.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2166, allocations: 0 / 389.1 MB, free: 33.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001219/0.2167, allocations: 19.97 kB / 389.1 MB, free: 33.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001814/0.2169, allocations: 68.75 kB / 389.2 MB, free: 33.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.217, allocations: 3.984 kB / 389.2 MB, free: 33.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001152/0.2181, allocations: 1.597 MB / 390.8 MB, free: 31.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2181, allocations: 0 / 390.8 MB, free: 31.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.2192, allocations: 0.9874 MB / 391.7 MB, free: 30.63 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.149e-05/0.2192, allocations: 100.8 kB / 391.8 MB, free: 30.52 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.847e-05/0.2193, allocations: 3.938 kB / 391.8 MB, free: 30.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002076/0.2195, allocations: 36.14 kB / 391.9 MB, free: 30.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.554e-05/0.2196, allocations: 19.92 kB / 391.9 MB, free: 30.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.2196, allocations: 11.98 kB / 391.9 MB, free: 30.45 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001157/0.2197, allocations: 184.5 kB / 392.1 MB, free: 30.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2197, allocations: 4 kB / 392.1 MB, free: 30.26 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006125/0.2203, allocations: 127.7 kB / 392.2 MB, free: 30.14 MB / 298.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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 8.425e-05/0.2204, allocations: 95.25 kB / 392.3 MB, free: 30.03 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.2215, allocations: 0.6857 MB / 393 MB, free: 29.3 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2215, allocations: 4.688 kB / 393 MB, free: 29.29 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003525/0.2219, allocations: 238.5 kB / 393.2 MB, free: 29.05 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.2221, allocations: 45.16 kB / 393.3 MB, free: 29.01 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007274/0.2229, allocations: 0.6732 MB / 394 MB, free: 28.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001301/0.223, allocations: 0.7444 MB / 394.7 MB, free: 27.52 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001088/0.2231, allocations: 26.28 kB / 394.7 MB, free: 27.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.069e-05/0.2232, allocations: 23.44 kB / 394.7 MB, free: 27.48 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.2232, allocations: 0 / 394.7 MB, free: 27.48 MB / 298.7 MB Notification: Performance of Templates: time 0.005775/0.229, allocations: 4.103 MB / 398.8 MB, free: 23.4 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmp/InvertingAmp.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches