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.001142/0.001142, allocations: 79.75 kB / 21.18 MB, free: 3.379 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.001516/0.001516, allocations: 161 kB / 24.56 MB, free: 12 kB / 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.9895/0.9895, allocations: 177.1 MB / 205 MB, free: 5.621 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.553e-06/1.553e-06, allocations: 0 / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.39e-05/1.545e-05, allocations: 2.312 kB / 273 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004875/0.004891, allocations: 5.95 MB / 278.9 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002435/0.007326, allocations: 1.533 MB / 280.5 MB, free: 10.01 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003986/0.007724, allocations: 19.88 kB / 280.5 MB, free: 9.988 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002956/0.00802, allocations: 174.2 kB / 280.7 MB, free: 9.816 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004673/0.008487, allocations: 309 kB / 281 MB, free: 9.512 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006963/0.009184, allocations: 431.1 kB / 281.4 MB, free: 9.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001369/0.01055, allocations: 1.437 MB / 282.8 MB, free: 7.648 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000384/0.01094, allocations: 273.7 kB / 283.1 MB, free: 7.355 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001062/0.012, allocations: 0.772 MB / 283.9 MB, free: 6.582 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004886/0.01249, allocations: 450.8 kB / 284.3 MB, free: 6.141 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001347/0.01262, allocations: 140 kB / 284.4 MB, free: 6.004 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002448/0.01287, allocations: 179.9 kB / 284.6 MB, free: 5.828 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001412/0.01301, allocations: 275.1 kB / 284.9 MB, free: 5.559 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000306/0.01331, allocations: 431 kB / 285.3 MB, free: 5.137 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007568/0.01407, allocations: 0.9539 MB / 286.3 MB, free: 4.18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.676e-06/0.01407, allocations: 0 / 286.3 MB, free: 4.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.01407, allocations: 0 / 286.3 MB, free: 4.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.01408, allocations: 0 / 286.3 MB, free: 4.18 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.001504/0.01559, allocations: 1.422 MB / 287.7 MB, free: 2.719 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.01562, allocations: 12.03 kB / 287.7 MB, free: 2.707 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003014/0.01593, allocations: 200.2 kB / 287.9 MB, free: 2.512 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000487/0.01641, allocations: 0.5114 MB / 288.4 MB, free: 1.973 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.748e-05/0.01645, allocations: 66.38 kB / 288.5 MB, free: 1.906 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.01655, allocations: 92.38 kB / 288.6 MB, free: 1.816 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.01766, allocations: 0.853 MB / 289.4 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.01767, allocations: 8.188 kB / 289.4 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.567e-05/0.01773, allocations: 36.38 kB / 289.5 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.911e-05/0.01775, allocations: 23.94 kB / 289.5 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000618/0.01837, allocations: 415.7 kB / 289.9 MB, free: 432 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1107/0.129, allocations: 2.622 MB / 292.5 MB, free: 25.66 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006003/0.1296, allocations: 443.5 kB / 292.9 MB, free: 25.62 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003057/0.13, allocations: 227.7 kB / 293.2 MB, free: 25.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.47e-05/0.13, allocations: 21.44 kB / 293.2 MB, free: 25.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.13, allocations: 43.92 kB / 293.2 MB, free: 25.55 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 2.986e-06/0.13, allocations: 0 / 293.2 MB, free: 25.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002416/0.1324, allocations: 1.499 MB / 294.7 MB, free: 25.08 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.422e-05/0.1325, allocations: 60.22 kB / 294.8 MB, free: 25.02 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005222/0.133, allocations: 0.5423 MB / 295.3 MB, free: 24.74 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.076e-05/0.133, allocations: 42.91 kB / 295.4 MB, free: 24.7 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002002/0.1332, allocations: 497.1 kB / 295.9 MB, free: 24.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.1334, allocations: 275 kB / 296.1 MB, free: 24.16 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001703/0.1335, allocations: 151.8 kB / 296.3 MB, free: 24.08 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.42e-05/0.1336, allocations: 0.5539 MB / 296.8 MB, free: 23.55 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002533/0.1339, allocations: 141.3 kB / 297 MB, free: 23.54 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003177/0.1342, allocations: 333.7 kB / 297.3 MB, free: 23.31 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005851/0.1348, allocations: 0.525 MB / 297.8 MB, free: 23 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1348, allocations: 1.844 kB / 297.8 MB, free: 23 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001087/0.1359, allocations: 0.7653 MB / 298.6 MB, free: 22.76 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.1359, allocations: 6.188 kB / 298.6 MB, free: 22.76 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.1359, allocations: 5.125 kB / 298.6 MB, free: 22.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003926/0.1363, allocations: 159.3 kB / 298.7 MB, free: 22.72 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004701/0.1368, allocations: 195.6 kB / 298.9 MB, free: 22.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001839/0.1386, allocations: 2.783 MB / 301.7 MB, free: 20.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002642/0.1389, allocations: 34.36 kB / 301.8 MB, free: 20.37 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.915e-05/0.1389, allocations: 31.05 kB / 301.8 MB, free: 20.36 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.000158/0.1391, allocations: 208.1 kB / 302 MB, free: 20.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/0.1392, allocations: 99.25 kB / 302.1 MB, free: 20.12 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.021e-05/0.1393, allocations: 88.92 kB / 302.2 MB, free: 20.05 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.1393, allocations: 10.56 kB / 302.2 MB, free: 20.05 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/0.1393, allocations: 3.312 kB / 302.2 MB, free: 20.05 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.1393, allocations: 7.797 kB / 302.2 MB, free: 20.04 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005698/0.1399, allocations: 0.5555 MB / 302.7 MB, free: 19.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.1399, allocations: 1.375 kB / 302.7 MB, free: 19.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003628/0.1402, allocations: 138 kB / 302.9 MB, free: 19.74 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003501/0.1406, allocations: 163.8 kB / 303 MB, free: 19.7 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.232e-05/0.1406, allocations: 22.14 kB / 303.1 MB, free: 19.69 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001722/0.1423, allocations: 2.779 MB / 305.8 MB, free: 17.38 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1423, allocations: 0 / 305.8 MB, free: 17.38 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.1434, allocations: 0.9382 MB / 306.8 MB, free: 16.96 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.6e-05/0.1435, allocations: 70.48 kB / 306.9 MB, free: 16.91 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.808e-05/0.1435, allocations: 16.45 kB / 306.9 MB, free: 16.9 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000259/0.1438, allocations: 48.67 kB / 306.9 MB, free: 16.89 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.863e-05/0.1439, allocations: 54.3 kB / 307 MB, free: 16.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/0.1439, allocations: 24.72 kB / 307 MB, free: 16.88 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000223/0.1442, allocations: 357.1 kB / 307.3 MB, free: 16.7 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1442, allocations: 0 / 307.3 MB, free: 16.7 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005172/0.1447, allocations: 242.7 kB / 307.6 MB, free: 16.68 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.000179/0.1449, allocations: 142.7 kB / 307.7 MB, free: 16.56 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009538/0.1458, allocations: 0.777 MB / 308.5 MB, free: 16.23 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.1458, allocations: 0 / 308.5 MB, free: 16.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005201/0.1463, allocations: 0.5524 MB / 309 MB, free: 15.94 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003971/0.1467, allocations: 140.1 kB / 309.2 MB, free: 15.89 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001848/0.1486, allocations: 1.711 MB / 310.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.724e-05/0.1487, allocations: 175.9 kB / 311.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001896/0.1489, allocations: 85.11 kB / 311.1 MB, free: 14.44 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.149, allocations: 56.47 kB / 311.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.149, allocations: 0 / 311.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of Templates: time 0.01133/0.1603, allocations: 11.47 MB / 322.7 MB, free: 3.145 MB / 266.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: 2.871379771735519]