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.00139/0.00139, allocations: 111.1 kB / 17.74 MB, free: 5.312 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.001097/0.001097, allocations: 184.2 kB / 18.66 MB, free: 4.398 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.32/1.32, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 47.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3331/0.3346, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006719/0.3413, allocations: 6.063 MB / 407.5 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003134/0.3445, allocations: 1.517 MB / 409 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00063/0.3452, allocations: 27.88 kB / 409 MB, free: 1.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000395/0.3456, allocations: 166.3 kB / 409.2 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006179/0.3462, allocations: 293.2 kB / 409.5 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008358/0.3471, allocations: 403.4 kB / 409.9 MB, free: 392 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001321/0.3484, allocations: 1.391 MB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005542/0.349, allocations: 433.2 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000593/0.3496, allocations: 0.4945 MB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005996/0.3502, allocations: 0.5641 MB / 412.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001666/0.3504, allocations: 136 kB / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002825/0.3507, allocations: 168 kB / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001886/0.3508, allocations: 275.1 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004696/0.3513, allocations: 0.5833 MB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001298/0.3526, allocations: 1.539 MB / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3526, allocations: 0 / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3527, allocations: 4 kB / 415.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.078e-05/0.3527, allocations: 0 / 415.4 MB, free: 10.78 MB / 334.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.002512/0.3552, allocations: 1.374 MB / 416.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.3553, allocations: 8.031 kB / 416.8 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001836/0.3554, allocations: 119.6 kB / 416.9 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007504/0.3562, allocations: 0.5615 MB / 417.5 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.738e-05/0.3563, allocations: 70.31 kB / 417.6 MB, free: 8.562 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.3564, allocations: 84.38 kB / 417.6 MB, free: 8.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001535/0.3579, allocations: 0.8549 MB / 418.5 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.358, allocations: 0 / 418.5 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-05/0.3581, allocations: 36 kB / 418.5 MB, free: 7.586 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.868e-05/0.3581, allocations: 28 kB / 418.6 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/0.3597, allocations: 0.8511 MB / 419.4 MB, free: 6.707 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00527/0.365, allocations: 3.226 MB / 422.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.3661, allocations: 0.6684 MB / 423.3 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006873/0.3668, allocations: 432.8 kB / 423.7 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.636e-05/0.3668, allocations: 12.55 kB / 423.7 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.3669, allocations: 39.12 kB / 423.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of pre-optimization done (n=69): time 2.294e-06/0.3669, allocations: 0 / 423.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.004451/0.3713, allocations: 2.271 MB / 426.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.468e-05/0.3714, allocations: 64.06 kB / 426.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006817/0.3721, allocations: 0.6096 MB / 426.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.88e-05/0.3722, allocations: 37.7 kB / 426.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002752/0.3724, allocations: 435.3 kB / 427.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.3726, allocations: 264.1 kB / 427.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002365/0.3729, allocations: 146.6 kB / 427.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.373, allocations: 390.7 kB / 428 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006176/0.3737, allocations: 333.7 kB / 428.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007113/0.3744, allocations: 468.6 kB / 428.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001325/0.3757, allocations: 0.8008 MB / 429.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.3757, allocations: 0 / 429.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00208/0.3778, allocations: 1.118 MB / 430.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.3778, allocations: 8 kB / 430.7 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.3779, allocations: 4 kB / 430.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005321/0.3784, allocations: 192.7 kB / 430.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008514/0.3793, allocations: 195.7 kB / 431.1 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003565/0.3828, allocations: 2.88 MB / 433.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006761/0.3835, allocations: 39.98 kB / 434 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.145e-05/0.3836, allocations: 35.98 kB / 434 MB, free: 7.598 MB / 350.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.0003628/0.384, allocations: 229.7 kB / 434.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.3841, allocations: 83 kB / 434.3 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000203/0.3843, allocations: 103.2 kB / 434.4 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.3843, allocations: 4 kB / 434.4 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/0.3843, allocations: 4.125 kB / 434.4 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.3844, allocations: 7.984 kB / 434.4 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009877/0.3853, allocations: 0.8885 MB / 435.3 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.3854, allocations: 3.938 kB / 435.3 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007296/0.3861, allocations: 147.8 kB / 435.5 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004864/0.3866, allocations: 187.3 kB / 435.7 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.043e-05/0.3867, allocations: 19.98 kB / 435.7 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003496/0.3902, allocations: 2.884 MB / 438.6 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.3902, allocations: 4 kB / 438.6 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002571/0.3928, allocations: 1.431 MB / 440 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001559/0.3929, allocations: 144.2 kB / 440.1 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001153/0.3931, allocations: 12 kB / 440.1 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006189/0.3937, allocations: 55.95 kB / 440.2 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.3938, allocations: 52.58 kB / 440.3 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.965e-05/0.3939, allocations: 23.98 kB / 440.3 MB, free: 1.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004695/0.3943, allocations: 431.1 kB / 440.7 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3944, allocations: 0 / 440.7 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007821/0.3951, allocations: 240 kB / 440.9 MB, free: 448 kB / 350.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.0002218/0.3954, allocations: 143.1 kB / 441.1 MB, free: 296 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002147/0.3975, allocations: 1.048 MB / 442.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3975, allocations: 0 / 442.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001286/0.3988, allocations: 0.6433 MB / 442.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007052/0.3996, allocations: 147.1 kB / 442.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002972/0.4025, allocations: 2.026 MB / 444.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000487/0.403, allocations: 0.9814 MB / 445.9 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002474/0.4033, allocations: 67.41 kB / 446 MB, free: 11.3 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4033, allocations: 0 / 446 MB, free: 11.3 MB / 366.1 MB Notification: Performance of Templates: time 0.01803/0.4213, allocations: 15 MB / 461 MB, free: 12.34 MB / 382.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