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.001549/0.001549, allocations: 109.9 kB / 17.16 MB, free: 6.082 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.001858/0.001859, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.309/2.309, allocations: 222.9 MB / 241.8 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 47.39 kB / 300.6 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1245, allocations: 49.44 MB / 350.1 MB, free: 4.652 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007898/0.1324, allocations: 6.053 MB / 356.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003569/0.1361, allocations: 1.509 MB / 357.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001082/0.1372, allocations: 19.94 kB / 357.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007135/0.1379, allocations: 131 kB / 357.8 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001363/0.1394, allocations: 253.8 kB / 358 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001141/0.1405, allocations: 355.6 kB / 358.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001948/0.1425, allocations: 1.313 MB / 359.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000756/0.1433, allocations: 374.9 kB / 360 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000966/0.1443, allocations: 430.5 kB / 360.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008959/0.1452, allocations: 0.5289 MB / 361 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002739/0.1455, allocations: 76 kB / 361.1 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004215/0.1459, allocations: 112 kB / 361.2 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002669/0.1462, allocations: 207.1 kB / 361.4 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000747/0.1469, allocations: 0.5247 MB / 361.9 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001404/0.1483, allocations: 1.173 MB / 363.1 MB, free: 7.555 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.413e-06/0.1484, allocations: 0 / 363.1 MB, free: 7.555 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1484, allocations: 3.938 kB / 363.1 MB, free: 7.551 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.398e-05/0.1484, allocations: 0 / 363.1 MB, free: 7.551 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.003396/0.1518, allocations: 1.391 MB / 364.5 MB, free: 6.109 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.1519, allocations: 8.031 kB / 364.5 MB, free: 6.102 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002942/0.1522, allocations: 115.6 kB / 364.6 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009599/0.1532, allocations: 0.5421 MB / 365.1 MB, free: 5.402 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.896e-05/0.1532, allocations: 66.38 kB / 365.2 MB, free: 5.336 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001743/0.1534, allocations: 92.28 kB / 365.3 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001885/0.1553, allocations: 0.8549 MB / 366.1 MB, free: 4.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/0.1554, allocations: 4 kB / 366.1 MB, free: 4.383 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.898e-05/0.1555, allocations: 36 kB / 366.2 MB, free: 4.348 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.385e-05/0.1555, allocations: 20 kB / 366.2 MB, free: 4.328 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00184/0.1573, allocations: 0.8511 MB / 367.1 MB, free: 3.477 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006593/0.1639, allocations: 3.23 MB / 370.3 MB, free: 124 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2474/0.4114, allocations: 0.6618 MB / 370.9 MB, free: 24.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001856/0.4133, allocations: 428 kB / 371.4 MB, free: 24.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001496/0.4135, allocations: 15.44 kB / 371.4 MB, free: 24.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.288e-05/0.4136, allocations: 40.42 kB / 371.4 MB, free: 24.76 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 8.716e-06/0.4136, allocations: 3.031 kB / 371.4 MB, free: 24.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.009214/0.4229, allocations: 2.265 MB / 373.7 MB, free: 23.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/0.423, allocations: 59.86 kB / 373.7 MB, free: 23.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001491/0.4245, allocations: 0.6084 MB / 374.4 MB, free: 23.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001167/0.4246, allocations: 41.2 kB / 374.4 MB, free: 23.47 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000413/0.425, allocations: 440.4 kB / 374.8 MB, free: 23.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003186/0.4254, allocations: 258.7 kB / 375.1 MB, free: 22.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004818/0.4259, allocations: 146.8 kB / 375.2 MB, free: 22.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.4261, allocations: 384.9 kB / 375.6 MB, free: 22.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001291/0.4274, allocations: 325.4 kB / 375.9 MB, free: 22.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001383/0.4288, allocations: 476.9 kB / 376.4 MB, free: 22.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002583/0.4314, allocations: 0.8007 MB / 377.2 MB, free: 21.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.218e-06/0.4314, allocations: 0 / 377.2 MB, free: 21.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.004215/0.4357, allocations: 1.117 MB / 378.3 MB, free: 21.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.758e-05/0.4357, allocations: 10.69 kB / 378.3 MB, free: 21.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.873e-05/0.4358, allocations: 2.656 kB / 378.3 MB, free: 21.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001054/0.4368, allocations: 191.6 kB / 378.5 MB, free: 21.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001745/0.4386, allocations: 193.1 kB / 378.7 MB, free: 21.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005857/0.4445, allocations: 2.634 MB / 381.3 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001417/0.4459, allocations: 39.81 kB / 381.4 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002122/0.4462, allocations: 35.44 kB / 381.4 MB, free: 19.05 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.0007557/0.447, allocations: 241.4 kB / 381.6 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003456/0.4473, allocations: 78.78 kB / 381.7 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003109/0.4477, allocations: 99.56 kB / 381.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.4477, allocations: 6.844 kB / 381.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.022e-05/0.4477, allocations: 3.562 kB / 381.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.4478, allocations: 10.55 kB / 381.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002088/0.4499, allocations: 0.883 MB / 382.7 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.201e-05/0.4499, allocations: 0 / 382.7 MB, free: 18.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001537/0.4514, allocations: 148.1 kB / 382.8 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009134/0.4524, allocations: 180.5 kB / 383 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001137/0.4525, allocations: 18.59 kB / 383 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005108/0.4576, allocations: 2.64 MB / 385.7 MB, free: 16.19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.4577, allocations: 0.6562 kB / 385.7 MB, free: 16.19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004179/0.4619, allocations: 1.427 MB / 387.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003288/0.4622, allocations: 147.3 kB / 387.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000255/0.4625, allocations: 17.78 kB / 387.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.4635, allocations: 50.3 kB / 387.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002584/0.4638, allocations: 58.86 kB / 387.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/0.4639, allocations: 24.47 kB / 387.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009758/0.4649, allocations: 426.7 kB / 387.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4649, allocations: 0 / 387.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001507/0.4664, allocations: 243.9 kB / 388.1 MB, free: 15.09 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.0003646/0.4668, allocations: 132.4 kB / 388.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003337/0.4702, allocations: 1.049 MB / 389.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.4702, allocations: 1.188 kB / 389.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002048/0.4723, allocations: 0.6414 MB / 389.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001605/0.4739, allocations: 141.9 kB / 390 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005211/0.4791, allocations: 2.403 MB / 392.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008044/0.4799, allocations: 0.9875 MB / 393.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004828/0.4804, allocations: 59.91 kB / 393.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of SimCode: time 1.914e-06/0.4805, allocations: 1.375 kB / 393.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of Templates: time 0.03006/0.5105, allocations: 14.93 MB / 408.4 MB, free: 15.54 MB / 318.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins1/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