Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 75.75 kB / 21.97 MB, free: 2.605 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 170.9 kB / 25.33 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9182/0.9182, allocations: 158.6 MB / 187.2 MB, free: 2.539 MB / 170.7 MB " [Timeout remaining time 179] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,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_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,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_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 251.1 MB, free: 3.57 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.685e-05/2.86e-05, allocations: 5.406 kB / 251.1 MB, free: 3.566 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005548/0.005577, allocations: 5.575 MB / 256.6 MB, free: 13.96 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002878/0.008455, allocations: 1.434 MB / 258.1 MB, free: 12.52 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004649/0.00892, allocations: 19.94 kB / 258.1 MB, free: 12.5 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003352/0.009255, allocations: 158.4 kB / 258.3 MB, free: 12.34 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005194/0.009774, allocations: 289.2 kB / 258.5 MB, free: 12.05 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000754/0.01053, allocations: 363.3 kB / 258.9 MB, free: 11.7 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001209/0.01174, allocations: 1.284 MB / 260.2 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005036/0.01224, allocations: 273.4 kB / 260.4 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008682/0.01311, allocations: 0.7018 MB / 261.1 MB, free: 9.418 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004984/0.01361, allocations: 414.9 kB / 261.5 MB, free: 9.012 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000154/0.01376, allocations: 128 kB / 261.7 MB, free: 8.887 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002645/0.01403, allocations: 164 kB / 261.8 MB, free: 8.727 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001802/0.01421, allocations: 251.2 kB / 262.1 MB, free: 8.48 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003554/0.01456, allocations: 399.1 kB / 262.5 MB, free: 8.09 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009748/0.01554, allocations: 0.8721 MB / 263.3 MB, free: 7.215 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.01554, allocations: 3.938 kB / 263.3 MB, free: 7.211 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.01554, allocations: 0 / 263.3 MB, free: 7.211 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.01556, allocations: 0 / 263.3 MB, free: 7.211 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.001896/0.01745, allocations: 1.325 MB / 264.7 MB, free: 5.848 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.0175, allocations: 12.03 kB / 264.7 MB, free: 5.836 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002304/0.01773, allocations: 168.3 kB / 264.8 MB, free: 5.672 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006101/0.01834, allocations: 473.8 kB / 265.3 MB, free: 5.18 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.858e-05/0.01838, allocations: 62.38 kB / 265.4 MB, free: 5.117 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/0.01851, allocations: 88.33 kB / 265.5 MB, free: 5.031 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/0.01963, allocations: 0.8603 MB / 266.3 MB, free: 4.102 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.01964, allocations: 192 / 266.3 MB, free: 4.102 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.685e-05/0.01971, allocations: 40.38 kB / 266.4 MB, free: 4.062 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.461e-05/0.01973, allocations: 23.94 kB / 266.4 MB, free: 4.039 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007691/0.0205, allocations: 387.6 kB / 266.8 MB, free: 3.66 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003515/0.02402, allocations: 2.585 MB / 269.3 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006674/0.02469, allocations: 422.9 kB / 269.8 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003446/0.02503, allocations: 217.5 kB / 270 MB, free: 340 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.51e-05/0.02509, allocations: 20.64 kB / 270 MB, free: 320 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.02512, allocations: 42.05 kB / 270 MB, free: 268 kB / 250.7 MB Notification: Performance of pre-optimization done (n=67): time 2.204e-06/0.02512, allocations: 0 / 270 MB, free: 268 kB / 250.7 MB Notification: Performance of matching and sorting (n=71): time 0.002705/0.02782, allocations: 1.45 MB / 271.5 MB, free: 14.78 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.02786, allocations: 64.06 kB / 271.5 MB, free: 14.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004723/0.02833, allocations: 0.4908 MB / 272 MB, free: 14.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.419e-05/0.02838, allocations: 37.7 kB / 272.1 MB, free: 14.15 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002462/0.02862, allocations: 451.1 kB / 272.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/0.0288, allocations: 257.8 kB / 272.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001959/0.02899, allocations: 140.3 kB / 272.9 MB, free: 13.3 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.02917, allocations: 0.5508 MB / 273.4 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002913/0.02946, allocations: 133.9 kB / 273.6 MB, free: 12.61 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003913/0.02985, allocations: 295 kB / 273.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000724/0.03058, allocations: 474.7 kB / 274.3 MB, free: 11.76 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.03058, allocations: 0 / 274.3 MB, free: 11.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001253/0.03183, allocations: 0.7153 MB / 275 MB, free: 11.03 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.03186, allocations: 14.66 kB / 275.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.03188, allocations: 7.984 kB / 275.1 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004693/0.03235, allocations: 149.9 kB / 275.2 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005487/0.03289, allocations: 175.8 kB / 275.4 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002802/0.0357, allocations: 2.736 MB / 278.1 MB, free: 7.836 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000303/0.036, allocations: 31.92 kB / 278.2 MB, free: 7.805 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.132e-05/0.03605, allocations: 31.98 kB / 278.2 MB, free: 7.773 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (84): * Single equations (assignments): 83 * 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,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000204/0.03625, allocations: 196.4 kB / 278.4 MB, free: 7.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.03639, allocations: 99.53 kB / 278.5 MB, free: 7.473 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001074/0.0365, allocations: 81.88 kB / 278.6 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.0365, allocations: 8 kB / 278.6 MB, free: 7.383 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.03652, allocations: 0 / 278.6 MB, free: 7.383 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.03653, allocations: 3.984 kB / 278.6 MB, free: 7.379 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006269/0.03715, allocations: 0.517 MB / 279.1 MB, free: 6.828 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.03716, allocations: 4.047 kB / 279.1 MB, free: 6.824 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004691/0.03763, allocations: 147.8 kB / 279.2 MB, free: 6.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004202/0.03805, allocations: 159 kB / 279.4 MB, free: 6.523 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.94e-05/0.0381, allocations: 23.98 kB / 279.4 MB, free: 6.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002538/0.04063, allocations: 2.727 MB / 282.1 MB, free: 3.648 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.04063, allocations: 0 / 282.1 MB, free: 3.648 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001436/0.04207, allocations: 0.9231 MB / 283.1 MB, free: 2.703 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.347e-05/0.04214, allocations: 67.5 kB / 283.1 MB, free: 2.637 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.68e-05/0.04221, allocations: 16 kB / 283.1 MB, free: 2.621 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003315/0.04254, allocations: 43.97 kB / 283.2 MB, free: 2.578 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.04265, allocations: 60.55 kB / 283.2 MB, free: 2.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.187e-05/0.04269, allocations: 19.98 kB / 283.3 MB, free: 2.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002779/0.04297, allocations: 326.8 kB / 283.6 MB, free: 2.184 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.04297, allocations: 0 / 283.6 MB, free: 2.184 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009591/0.04393, allocations: 224 kB / 283.8 MB, free: 1.965 MB / 266.7 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.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * 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,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002089/0.04414, allocations: 133.5 kB / 283.9 MB, free: 1.828 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.04544, allocations: 0.7585 MB / 284.7 MB, free: 1.051 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.04544, allocations: 0 / 284.7 MB, free: 1.051 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008079/0.04625, allocations: 0.5495 MB / 285.2 MB, free: 492 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005501/0.0468, allocations: 126.3 kB / 285.4 MB, free: 368 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002558/0.04936, allocations: 1.621 MB / 287 MB, free: 14.7 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001437/0.0495, allocations: 171 kB / 287.1 MB, free: 14.5 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002382/0.04974, allocations: 76.84 kB / 287.2 MB, free: 14.43 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/0.04989, allocations: 52.47 kB / 287.3 MB, free: 14.38 MB / 282.7 MB Notification: Performance of SimCode: time 8.91e-07/0.04989, allocations: 4 kB / 287.3 MB, free: 14.38 MB / 282.7 MB Notification: Performance of Templates: time 0.01597/0.06585, allocations: 10.36 MB / 297.6 MB, free: 4.031 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2770631560124457]