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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 82.17 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 152.2 kB / 24.81 MB, free: 8.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.005/1.005, allocations: 173.4 MB / 201.5 MB, free: 8.812 MB / 186.7 MB " [Timeout remaining time 179] 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=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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 268.4 MB, free: 6.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.482e-05/1.622e-05, allocations: 2.312 kB / 268.4 MB, free: 6 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006235/0.006251, allocations: 5.805 MB / 274.2 MB, free: 172 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001812/0.008063, allocations: 1.509 MB / 275.7 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002977/0.008361, allocations: 19.88 kB / 275.8 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003124/0.008673, allocations: 170.3 kB / 275.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000496/0.009169, allocations: 317 kB / 276.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006492/0.009819, allocations: 415.3 kB / 276.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001074/0.01089, allocations: 1.437 MB / 278.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003777/0.01127, allocations: 285.7 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000719/0.01199, allocations: 0.7564 MB / 279.1 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005057/0.0125, allocations: 454.8 kB / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001561/0.01265, allocations: 136 kB / 279.7 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002599/0.01291, allocations: 167.9 kB / 279.9 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001992/0.01311, allocations: 279 kB / 280.1 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004004/0.01351, allocations: 435 kB / 280.6 MB, free: 9.801 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009485/0.01446, allocations: 0.95 MB / 281.5 MB, free: 8.848 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.973e-06/0.01446, allocations: 0 / 281.5 MB, free: 8.848 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.01446, allocations: 0 / 281.5 MB, free: 8.848 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.134e-06/0.01447, allocations: 0 / 281.5 MB, free: 8.848 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.001888/0.01636, allocations: 1.43 MB / 282.9 MB, free: 7.379 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.0164, allocations: 8.922 kB / 282.9 MB, free: 7.371 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002875/0.01668, allocations: 188.2 kB / 283.1 MB, free: 7.188 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004947/0.01718, allocations: 0.496 MB / 283.6 MB, free: 6.664 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.32e-05/0.01723, allocations: 70.36 kB / 283.7 MB, free: 6.594 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.01736, allocations: 92.33 kB / 283.8 MB, free: 6.504 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006762/0.01804, allocations: 0.7904 MB / 284.6 MB, free: 5.645 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.01805, allocations: 192 / 284.6 MB, free: 5.645 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.739e-05/0.0181, allocations: 40.38 kB / 284.6 MB, free: 5.605 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.52e-05/0.01811, allocations: 27.92 kB / 284.6 MB, free: 5.578 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005067/0.01862, allocations: 325.7 kB / 285 MB, free: 5.262 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003715/0.02234, allocations: 2.547 MB / 287.5 MB, free: 2.609 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005443/0.02288, allocations: 385.2 kB / 287.9 MB, free: 2.215 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002955/0.02318, allocations: 205.9 kB / 288.1 MB, free: 2.008 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.391e-05/0.02323, allocations: 20.64 kB / 288.1 MB, free: 1.984 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.02327, allocations: 46.05 kB / 288.2 MB, free: 1.93 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 2.565e-06/0.02327, allocations: 0 / 288.2 MB, free: 1.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002338/0.02561, allocations: 1.256 MB / 289.4 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.02564, allocations: 64.05 kB / 289.5 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004029/0.02604, allocations: 0.5334 MB / 290 MB, free: 16 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.1038/0.1299, allocations: 40.7 kB / 290 MB, free: 30.17 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002745/0.1301, allocations: 0.4917 MB / 290.5 MB, free: 30.01 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/0.1303, allocations: 269.5 kB / 290.8 MB, free: 29.87 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001949/0.1305, allocations: 157.6 kB / 291 MB, free: 29.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.1306, allocations: 0.5605 MB / 291.5 MB, free: 29.35 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002122/0.1308, allocations: 109.8 kB / 291.6 MB, free: 29.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002451/0.1311, allocations: 306.4 kB / 291.9 MB, free: 29.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005109/0.1316, allocations: 473.3 kB / 292.4 MB, free: 28.95 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.1316, allocations: 1.875 kB / 292.4 MB, free: 28.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00107/0.1327, allocations: 0.7046 MB / 293.1 MB, free: 28.83 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.1327, allocations: 7.094 kB / 293.1 MB, free: 28.83 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.1327, allocations: 10.72 kB / 293.1 MB, free: 28.83 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003521/0.133, allocations: 151.8 kB / 293.3 MB, free: 28.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005098/0.1336, allocations: 187.8 kB / 293.4 MB, free: 28.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001927/0.1355, allocations: 2.72 MB / 296.2 MB, free: 26.85 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004643/0.1359, allocations: 33.05 kB / 296.2 MB, free: 26.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.898e-05/0.136, allocations: 23.69 kB / 296.2 MB, free: 26.85 MB / 266.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.0002243/0.1362, allocations: 204.1 kB / 296.4 MB, free: 26.69 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000123/0.1363, allocations: 102.7 kB / 296.5 MB, free: 26.64 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000106/0.1364, allocations: 92.86 kB / 296.6 MB, free: 26.63 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.1364, allocations: 7.375 kB / 296.6 MB, free: 26.63 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.66e-05/0.1365, allocations: 3.438 kB / 296.6 MB, free: 26.63 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.1365, allocations: 7.734 kB / 296.6 MB, free: 26.63 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007493/0.1372, allocations: 464.2 kB / 297.1 MB, free: 26.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.1372, allocations: 1.656 kB / 297.1 MB, free: 26.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004128/0.1376, allocations: 141.1 kB / 297.2 MB, free: 26.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003572/0.138, allocations: 156.5 kB / 297.4 MB, free: 26.49 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.651e-05/0.138, allocations: 21.17 kB / 297.4 MB, free: 26.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001778/0.1398, allocations: 2.714 MB / 300.1 MB, free: 24.37 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.1398, allocations: 1.062 kB / 300.1 MB, free: 24.37 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.1409, allocations: 0.8577 MB / 301 MB, free: 24.01 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.397e-05/0.1409, allocations: 69.83 kB / 301 MB, free: 23.96 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.784e-05/0.141, allocations: 14.19 kB / 301 MB, free: 23.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002602/0.1413, allocations: 47.88 kB / 301.1 MB, free: 23.95 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.1414, allocations: 54.27 kB / 301.1 MB, free: 23.94 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.529e-05/0.1414, allocations: 18.28 kB / 301.2 MB, free: 23.93 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002498/0.1417, allocations: 340.8 kB / 301.5 MB, free: 23.79 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1417, allocations: 0 / 301.5 MB, free: 23.79 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006489/0.1423, allocations: 236.7 kB / 301.7 MB, free: 23.76 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.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.0001973/0.1425, allocations: 136.8 kB / 301.9 MB, free: 23.65 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.1436, allocations: 0.7234 MB / 302.6 MB, free: 23.36 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1436, allocations: 1.406 kB / 302.6 MB, free: 23.36 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006293/0.1442, allocations: 0.5243 MB / 303.1 MB, free: 23.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004378/0.1446, allocations: 152.6 kB / 303.3 MB, free: 23.03 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002097/0.1467, allocations: 1.689 MB / 304.9 MB, free: 22.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001678/0.1469, allocations: 176 kB / 305.1 MB, free: 22 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003097/0.1472, allocations: 83.11 kB / 305.2 MB, free: 21.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000377/0.1476, allocations: 243.1 kB / 305.4 MB, free: 21.9 MB / 266.7 MB Notification: Performance of SimCode: time 1.323e-06/0.1476, allocations: 0 / 305.4 MB, free: 21.9 MB / 266.7 MB Notification: Performance of Templates: time 0.01363/0.1612, allocations: 11.71 MB / 317.1 MB, free: 13.15 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.1581955570727587]