Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 106 kB / 16.62 MB, free: 6.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 193.8 kB / 17.55 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009861/0.0009861, allocations: 41.7 kB / 300.1 MB, free: 6.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1217, allocations: 49.46 MB / 349.6 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007267/0.1291, allocations: 6.049 MB / 355.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003383/0.1325, allocations: 1.513 MB / 357.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003807/0.1329, allocations: 19.94 kB / 357.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003986/0.1334, allocations: 127 kB / 357.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005096/0.1339, allocations: 245.9 kB / 357.5 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007494/0.1346, allocations: 367.6 kB / 357.9 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001224/0.1359, allocations: 1.387 MB / 359.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006375/0.1365, allocations: 425.2 kB / 359.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006239/0.1372, allocations: 0.4945 MB / 360.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006217/0.1378, allocations: 0.5641 MB / 360.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001671/0.138, allocations: 136 kB / 360.9 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002804/0.1382, allocations: 167.9 kB / 361 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000232/0.1385, allocations: 275.2 kB / 361.3 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005242/0.139, allocations: 0.5871 MB / 361.9 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001371/0.1404, allocations: 1.531 MB / 363.4 MB, free: 6.832 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.84e-06/0.1404, allocations: 0 / 363.4 MB, free: 6.832 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.1404, allocations: 0 / 363.4 MB, free: 6.832 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.387e-05/0.1404, allocations: 0 / 363.4 MB, free: 6.832 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002617/0.1431, allocations: 1.379 MB / 364.8 MB, free: 5.398 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.1431, allocations: 8.031 kB / 364.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002136/0.1433, allocations: 119.6 kB / 364.9 MB, free: 5.273 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006804/0.144, allocations: 0.5383 MB / 365.5 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.948e-05/0.1441, allocations: 66.38 kB / 365.5 MB, free: 4.633 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000145/0.1442, allocations: 92.28 kB / 365.6 MB, free: 4.543 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.1458, allocations: 0.8548 MB / 366.5 MB, free: 3.684 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.1458, allocations: 0 / 366.5 MB, free: 3.684 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.534e-05/0.1459, allocations: 39.94 kB / 366.5 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.471e-05/0.1459, allocations: 27.98 kB / 366.5 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001583/0.1475, allocations: 0.8512 MB / 367.4 MB, free: 2.762 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.253/0.4006, allocations: 3.23 MB / 370.6 MB, free: 24.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001519/0.4021, allocations: 0.6594 MB / 371.3 MB, free: 24.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001038/0.4032, allocations: 429.9 kB / 371.7 MB, free: 24.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.436e-05/0.4033, allocations: 24.81 kB / 371.7 MB, free: 24.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.709e-05/0.4033, allocations: 43.5 kB / 371.8 MB, free: 24.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 4.889e-06/0.4034, allocations: 0 / 371.8 MB, free: 24.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.005299/0.4087, allocations: 2.261 MB / 374 MB, free: 23.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.4087, allocations: 59.8 kB / 374.1 MB, free: 23.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000931/0.4097, allocations: 0.6091 MB / 374.7 MB, free: 23.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.732e-05/0.4097, allocations: 37.83 kB / 374.7 MB, free: 22.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002888/0.41, allocations: 442.7 kB / 375.2 MB, free: 22.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002064/0.4102, allocations: 260.8 kB / 375.4 MB, free: 22.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000291/0.4105, allocations: 147.3 kB / 375.6 MB, free: 22.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.4107, allocations: 388.8 kB / 375.9 MB, free: 22.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007065/0.4114, allocations: 331.8 kB / 376.3 MB, free: 21.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007283/0.4122, allocations: 471.2 kB / 376.7 MB, free: 21.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/0.4135, allocations: 0.8008 MB / 377.5 MB, free: 21.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.4135, allocations: 1.625 kB / 377.5 MB, free: 21.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002168/0.4157, allocations: 1.109 MB / 378.6 MB, free: 20.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.4158, allocations: 8.672 kB / 378.6 MB, free: 20.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.4158, allocations: 3.312 kB / 378.7 MB, free: 20.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005967/0.4164, allocations: 199.7 kB / 378.8 MB, free: 20.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009305/0.4173, allocations: 197.8 kB / 379 MB, free: 20.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003544/0.4209, allocations: 2.891 MB / 381.9 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007423/0.4216, allocations: 40.95 kB / 382 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.376e-05/0.4217, allocations: 30.98 kB / 382 MB, free: 18.35 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000422/0.4221, allocations: 230.1 kB / 382.2 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.4223, allocations: 80.16 kB / 382.3 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000172/0.4225, allocations: 93.53 kB / 382.4 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.107e-05/0.4225, allocations: 12.89 kB / 382.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.847e-05/0.4225, allocations: 6.469 kB / 382.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/0.4225, allocations: 7.406 kB / 382.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00132/0.4239, allocations: 0.8842 MB / 383.3 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.4239, allocations: 0.6562 kB / 383.3 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007702/0.4247, allocations: 147.7 kB / 383.5 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005343/0.4252, allocations: 188.2 kB / 383.6 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.747e-05/0.4253, allocations: 17.53 kB / 383.7 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003304/0.4286, allocations: 2.894 MB / 386.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.4286, allocations: 0 / 386.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002664/0.4313, allocations: 1.43 MB / 388 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.4314, allocations: 147.5 kB / 388.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.4315, allocations: 22.33 kB / 388.1 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006121/0.4322, allocations: 50.89 kB / 388.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/0.4323, allocations: 52.48 kB / 388.2 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-05/0.4324, allocations: 27.95 kB / 388.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005527/0.4329, allocations: 431.1 kB / 388.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.433, allocations: 3.938 kB / 388.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009269/0.4339, allocations: 243.2 kB / 388.9 MB, free: 14.17 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * 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 (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002308/0.4341, allocations: 127.2 kB / 389.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002506/0.4366, allocations: 1.069 MB / 390.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.4367, allocations: 0 / 390.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.4379, allocations: 0.6409 MB / 390.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008039/0.4387, allocations: 144.5 kB / 390.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00328/0.442, allocations: 2.386 MB / 393.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000465/0.4425, allocations: 0.9836 MB / 394.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004107/0.4429, allocations: 91.8 kB / 394.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001846/0.4431, allocations: 57.56 kB / 394.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4431, allocations: 0 / 394.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of Templates: time 0.01655/0.4597, allocations: 11 MB / 405.4 MB, free: 1.984 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches