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.001451/0.001456, allocations: 112.3 kB / 17.68 MB, free: 5.473 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.001641/0.001642, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.427/1.427, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001038/0.001038, allocations: 49.72 kB / 302 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.11, allocations: 49.45 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006909/0.1169, allocations: 6.062 MB / 357.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002898/0.1199, allocations: 1.529 MB / 359.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004962/0.1204, allocations: 19.94 kB / 359.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003816/0.1208, allocations: 170.3 kB / 359.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005583/0.1214, allocations: 293.2 kB / 359.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007716/0.1221, allocations: 407.4 kB / 359.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001141/0.1233, allocations: 1.391 MB / 361.3 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005057/0.1238, allocations: 429.2 kB / 361.8 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000505/0.1243, allocations: 0.4984 MB / 362.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005706/0.1249, allocations: 0.5602 MB / 362.8 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001505/0.1251, allocations: 140 kB / 363 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002359/0.1253, allocations: 172 kB / 363.1 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001942/0.1255, allocations: 275.1 kB / 363.4 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004544/0.126, allocations: 0.5872 MB / 364 MB, free: 7.145 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001159/0.1271, allocations: 1.526 MB / 365.5 MB, free: 5.613 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.1272, allocations: 4 kB / 365.5 MB, free: 5.609 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1272, allocations: 0 / 365.5 MB, free: 5.609 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.499e-05/0.1272, allocations: 0 / 365.5 MB, free: 5.609 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.002416/0.1296, allocations: 1.387 MB / 366.9 MB, free: 4.168 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.1297, allocations: 15.97 kB / 366.9 MB, free: 4.152 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001669/0.1298, allocations: 111.6 kB / 367 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007222/0.1306, allocations: 0.5461 MB / 367.6 MB, free: 3.457 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.525e-05/0.1306, allocations: 66.38 kB / 367.6 MB, free: 3.395 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.1307, allocations: 92.28 kB / 367.7 MB, free: 3.305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.1321, allocations: 0.8549 MB / 368.6 MB, free: 2.445 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.1322, allocations: 3.938 kB / 368.6 MB, free: 2.441 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.721e-05/0.1323, allocations: 40 kB / 368.6 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.793e-05/0.1323, allocations: 20 kB / 368.6 MB, free: 2.383 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001525/0.1338, allocations: 0.8589 MB / 369.5 MB, free: 1.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2147/0.3485, allocations: 3.191 MB / 372.7 MB, free: 23.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002175/0.3508, allocations: 0.6689 MB / 373.4 MB, free: 23.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001091/0.3519, allocations: 435.6 kB / 373.8 MB, free: 23.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.056e-05/0.352, allocations: 10.3 kB / 373.8 MB, free: 23.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.346e-05/0.3521, allocations: 46.11 kB / 373.8 MB, free: 23.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 5.721e-06/0.3521, allocations: 1.031 kB / 373.8 MB, free: 23.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.007523/0.3596, allocations: 2.26 MB / 376.1 MB, free: 22.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.815e-05/0.3597, allocations: 61.8 kB / 376.2 MB, free: 22.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001111/0.3609, allocations: 0.615 MB / 376.8 MB, free: 22.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.882e-05/0.361, allocations: 37.83 kB / 376.8 MB, free: 22.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002707/0.3612, allocations: 439.1 kB / 377.2 MB, free: 21.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000178/0.3614, allocations: 265.2 kB / 377.5 MB, free: 21.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002741/0.3617, allocations: 146.2 kB / 377.6 MB, free: 21.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.3619, allocations: 388.7 kB / 378 MB, free: 21.13 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007361/0.3626, allocations: 328 kB / 378.3 MB, free: 21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/0.3637, allocations: 474.6 kB / 378.8 MB, free: 20.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001951/0.3657, allocations: 0.7996 MB / 379.6 MB, free: 20.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.3657, allocations: 1.406 kB / 379.6 MB, free: 20.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003772/0.3695, allocations: 1.114 MB / 380.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.451e-05/0.3696, allocations: 6.422 kB / 380.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.204e-05/0.3696, allocations: 4.312 kB / 380.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/0.3707, allocations: 191.9 kB / 380.9 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001394/0.3721, allocations: 200.5 kB / 381.1 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005388/0.3775, allocations: 2.884 MB / 384 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001348/0.3789, allocations: 37.69 kB / 384 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/0.379, allocations: 35.44 kB / 384.1 MB, free: 17.49 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.0006835/0.3797, allocations: 233.1 kB / 384.3 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002421/0.38, allocations: 79.12 kB / 384.4 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002816/0.3803, allocations: 95.89 kB / 384.5 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.538e-05/0.3803, allocations: 10.25 kB / 384.5 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-05/0.3803, allocations: 3.469 kB / 384.5 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.3804, allocations: 3.938 kB / 384.5 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002087/0.3825, allocations: 0.8863 MB / 385.4 MB, free: 16.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.3825, allocations: 1.25 kB / 385.4 MB, free: 16.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/0.3837, allocations: 155.9 kB / 385.5 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008234/0.3846, allocations: 186.9 kB / 385.7 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000117/0.3847, allocations: 22.28 kB / 385.7 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005112/0.3898, allocations: 2.879 MB / 388.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.3899, allocations: 3.938 kB / 388.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004013/0.3939, allocations: 1.428 MB / 390 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003557/0.3943, allocations: 146.6 kB / 390.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001707/0.3945, allocations: 21.14 kB / 390.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009105/0.3954, allocations: 52.77 kB / 390.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002587/0.3957, allocations: 51.78 kB / 390.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.82e-05/0.3958, allocations: 25.66 kB / 390.3 MB, free: 13.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008361/0.3966, allocations: 424.3 kB / 390.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3966, allocations: 0 / 390.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001518/0.3981, allocations: 242.4 kB / 391 MB, free: 13.31 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.0002578/0.3984, allocations: 149.5 kB / 391.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002987/0.4014, allocations: 1.033 MB / 392.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.4015, allocations: 5.406 kB / 392.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001841/0.4033, allocations: 0.6395 MB / 392.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/0.4046, allocations: 143.8 kB / 392.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004592/0.4093, allocations: 1.99 MB / 394.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005572/0.4098, allocations: 0.98 MB / 395.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005072/0.4104, allocations: 99.17 kB / 396 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001713/0.4105, allocations: 53.58 kB / 396.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4105, allocations: 0 / 396.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of Templates: time 0.01801/0.4286, allocations: 11.1 MB / 407.2 MB, free: 0.9453 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 -s gbode -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