Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001526/0.001526, allocations: 80.31 kB / 22.21 MB, free: 2.293 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.001054/0.001054, allocations: 170.5 kB / 25.61 MB, free: 8.914 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9567/0.9567, allocations: 177.1 MB / 206 MB, free: 4.5 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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=5003,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.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,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.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 274.2 MB, free: 4.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.914e-05/2.051e-05, allocations: 2.312 kB / 274.2 MB, free: 4.469 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004806/0.004826, allocations: 5.823 MB / 280 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001783/0.00661, allocations: 1.532 MB / 281.6 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002467/0.006856, allocations: 19.94 kB / 281.6 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002714/0.007128, allocations: 174.2 kB / 281.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006305/0.007758, allocations: 305 kB / 282.1 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005571/0.008315, allocations: 431.1 kB / 282.5 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000819/0.009134, allocations: 1.43 MB / 283.9 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003126/0.009447, allocations: 285.7 kB / 284.2 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006121/0.01006, allocations: 0.7642 MB / 285 MB, free: 9.684 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004242/0.01048, allocations: 450.8 kB / 285.4 MB, free: 9.242 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001229/0.01061, allocations: 136 kB / 285.5 MB, free: 9.109 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002111/0.01082, allocations: 179.9 kB / 285.7 MB, free: 8.934 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001507/0.01097, allocations: 287 kB / 286 MB, free: 8.652 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002671/0.01124, allocations: 427 kB / 286.4 MB, free: 8.234 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006974/0.01193, allocations: 0.9578 MB / 287.4 MB, free: 7.273 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.01194, allocations: 0 / 287.4 MB, free: 7.273 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.01194, allocations: 0 / 287.4 MB, free: 7.273 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.767e-06/0.01195, allocations: 0 / 287.4 MB, free: 7.273 MB / 266.7 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.001467/0.01341, allocations: 1.43 MB / 288.8 MB, free: 5.805 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.01345, allocations: 11.98 kB / 288.8 MB, free: 5.793 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002841/0.01373, allocations: 204.2 kB / 289 MB, free: 5.594 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006954/0.01443, allocations: 0.4959 MB / 289.5 MB, free: 5.07 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.172e-05/0.01447, allocations: 70.38 kB / 289.6 MB, free: 5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.606e-05/0.01456, allocations: 96.31 kB / 289.7 MB, free: 4.906 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006721/0.01524, allocations: 0.7904 MB / 290.5 MB, free: 4.043 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.01525, allocations: 192 / 290.5 MB, free: 4.043 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.198e-05/0.0153, allocations: 40.38 kB / 290.5 MB, free: 4.004 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.01532, allocations: 27.94 kB / 290.5 MB, free: 3.977 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004179/0.01574, allocations: 325.7 kB / 290.8 MB, free: 3.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003057/0.01879, allocations: 2.539 MB / 293.4 MB, free: 1.016 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004568/0.01925, allocations: 397.1 kB / 293.8 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002091/0.01946, allocations: 202 kB / 294 MB, free: 424 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.41e-05/0.0195, allocations: 20.64 kB / 294 MB, free: 400 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.01953, allocations: 46.05 kB / 294 MB, free: 344 kB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 2.334e-06/0.01954, allocations: 0 / 294 MB, free: 344 kB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.001849/0.02138, allocations: 1.261 MB / 295.3 MB, free: 15.04 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.131e-05/0.02142, allocations: 60.06 kB / 295.3 MB, free: 14.97 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003416/0.02176, allocations: 0.5334 MB / 295.9 MB, free: 14.42 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.941e-05/0.0218, allocations: 37.7 kB / 295.9 MB, free: 14.38 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004796/0.02228, allocations: 0.4911 MB / 296.4 MB, free: 13.88 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.02241, allocations: 277.6 kB / 296.7 MB, free: 13.61 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/0.02257, allocations: 156.2 kB / 296.8 MB, free: 13.45 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.02271, allocations: 0.5623 MB / 297.4 MB, free: 12.87 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.02287, allocations: 113.8 kB / 297.5 MB, free: 12.76 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002404/0.02311, allocations: 301.8 kB / 297.8 MB, free: 12.4 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004375/0.02355, allocations: 469.3 kB / 298.3 MB, free: 11.88 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.02355, allocations: 0 / 298.3 MB, free: 11.88 MB / 282.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0008504/0.0244, allocations: 0.7033 MB / 299 MB, free: 11.16 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.02442, allocations: 8 kB / 299 MB, free: 11.15 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.02443, allocations: 4 kB / 299 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003326/0.02476, allocations: 153.9 kB / 299.1 MB, free: 10.99 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004448/0.02521, allocations: 191.8 kB / 299.3 MB, free: 10.8 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002026/0.02723, allocations: 2.711 MB / 302 MB, free: 7.984 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003137/0.02755, allocations: 31.98 kB / 302 MB, free: 7.953 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.706e-05/0.02758, allocations: 23.98 kB / 302.1 MB, free: 7.93 MB / 282.7 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.0002077/0.02779, allocations: 212.3 kB / 302.3 MB, free: 7.711 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.02791, allocations: 99.53 kB / 302.4 MB, free: 7.613 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.02801, allocations: 94.58 kB / 302.5 MB, free: 7.512 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.02801, allocations: 8 kB / 302.5 MB, free: 7.504 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.02802, allocations: 0 / 302.5 MB, free: 7.504 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.02803, allocations: 3.984 kB / 302.5 MB, free: 7.5 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000529/0.02856, allocations: 477.9 kB / 302.9 MB, free: 7.008 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.02856, allocations: 4 kB / 303 MB, free: 7.004 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003653/0.02893, allocations: 139.8 kB / 303.1 MB, free: 6.867 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003057/0.02923, allocations: 157.9 kB / 303.2 MB, free: 6.711 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.403e-05/0.02927, allocations: 23.98 kB / 303.3 MB, free: 6.688 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002016/0.03128, allocations: 2.714 MB / 306 MB, free: 3.871 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.03129, allocations: 0 / 306 MB, free: 3.871 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009229/0.03221, allocations: 0.8566 MB / 306.8 MB, free: 2.992 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.792e-05/0.03227, allocations: 67.52 kB / 306.9 MB, free: 2.926 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.088e-05/0.03233, allocations: 16 kB / 306.9 MB, free: 2.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002678/0.0326, allocations: 43.97 kB / 307 MB, free: 2.867 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.648e-05/0.03267, allocations: 56.55 kB / 307 MB, free: 2.812 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.061e-05/0.0327, allocations: 19.98 kB / 307 MB, free: 2.793 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001792/0.03288, allocations: 338.6 kB / 307.4 MB, free: 2.465 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.03288, allocations: 0 / 307.4 MB, free: 2.465 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000508/0.03339, allocations: 244 kB / 307.6 MB, free: 2.227 MB / 282.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.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.0001531/0.03354, allocations: 127.1 kB / 307.7 MB, free: 2.094 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008479/0.03439, allocations: 0.7242 MB / 308.5 MB, free: 1.348 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.03439, allocations: 4.125 kB / 308.5 MB, free: 1.344 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005464/0.03494, allocations: 0.5212 MB / 309 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004222/0.03536, allocations: 150.2 kB / 309.1 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/0.03743, allocations: 1.671 MB / 310.8 MB, free: 14.95 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001007/0.03753, allocations: 175.3 kB / 311 MB, free: 14.75 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000209/0.03774, allocations: 89.09 kB / 311.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003272/0.03807, allocations: 242.1 kB / 311.3 MB, free: 14.43 MB / 298.7 MB Notification: Performance of SimCode: time 7.72e-07/0.03807, allocations: 0 / 311.3 MB, free: 14.43 MB / 298.7 MB Notification: Performance of Templates: time 0.01452/0.05259, allocations: 12.01 MB / 323.3 MB, free: 2.621 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.0241082194261253]