Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009182/0.0009182, allocations: 91.67 kB / 21.19 MB, free: 3.367 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009323/0.0009323, allocations: 156.5 kB / 24.55 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9332/0.9332, allocations: 177 MB / 204.8 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.651e-05/2.785e-05, allocations: 2.312 kB / 272.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.005293/0.005321, allocations: 5.947 MB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002755/0.008076, allocations: 1.533 MB / 280.4 MB, free: 9.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003873/0.008463, allocations: 19.94 kB / 280.4 MB, free: 9.891 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003087/0.008772, allocations: 174.2 kB / 280.6 MB, free: 9.719 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004829/0.009255, allocations: 309 kB / 280.9 MB, free: 9.414 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007434/0.009998, allocations: 427.2 kB / 281.3 MB, free: 8.996 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001101/0.0111, allocations: 1.433 MB / 282.8 MB, free: 7.559 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003516/0.01145, allocations: 285.7 kB / 283 MB, free: 7.258 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008083/0.01226, allocations: 0.7643 MB / 283.8 MB, free: 6.492 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004376/0.0127, allocations: 458.7 kB / 284.3 MB, free: 6.043 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001456/0.01284, allocations: 136 kB / 284.4 MB, free: 5.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002254/0.01307, allocations: 175.9 kB / 284.6 MB, free: 5.738 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001476/0.01321, allocations: 283.1 kB / 284.8 MB, free: 5.461 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003066/0.01352, allocations: 427 kB / 285.3 MB, free: 5.043 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007663/0.01429, allocations: 0.9539 MB / 286.2 MB, free: 4.086 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.01429, allocations: 7.938 kB / 286.2 MB, free: 4.078 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.01429, allocations: 0 / 286.2 MB, free: 4.078 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.0143, allocations: 0 / 286.2 MB, free: 4.078 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.001572/0.01587, allocations: 1.422 MB / 287.6 MB, free: 2.617 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.01591, allocations: 8.031 kB / 287.6 MB, free: 2.609 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003048/0.01622, allocations: 204.2 kB / 287.8 MB, free: 2.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005133/0.01673, allocations: 0.4998 MB / 288.3 MB, free: 1.883 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.86e-05/0.01677, allocations: 66.38 kB / 288.4 MB, free: 1.816 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.733e-05/0.01687, allocations: 92.38 kB / 288.5 MB, free: 1.727 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008807/0.01775, allocations: 0.853 MB / 289.4 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.01776, allocations: 4.125 kB / 289.4 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.58e-05/0.01782, allocations: 40.38 kB / 289.4 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.79e-05/0.01784, allocations: 27.94 kB / 289.4 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007067/0.01855, allocations: 419.7 kB / 289.8 MB, free: 332 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1209/0.1394, allocations: 2.62 MB / 292.5 MB, free: 25.62 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006601/0.1401, allocations: 433.3 kB / 292.9 MB, free: 25.58 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003508/0.1404, allocations: 237.2 kB / 293.1 MB, free: 25.55 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.574e-05/0.1405, allocations: 15.3 kB / 293.1 MB, free: 25.55 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.1405, allocations: 49.02 kB / 293.2 MB, free: 25.51 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 2.865e-06/0.1405, allocations: 0 / 293.2 MB, free: 25.51 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002268/0.1428, allocations: 1.497 MB / 294.7 MB, free: 25.01 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.376e-05/0.1428, allocations: 60.23 kB / 294.7 MB, free: 24.95 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00045/0.1432, allocations: 0.5483 MB / 295.3 MB, free: 24.67 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.896e-05/0.1433, allocations: 37.11 kB / 295.3 MB, free: 24.63 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001843/0.1435, allocations: 497 kB / 295.8 MB, free: 24.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.1436, allocations: 274.5 kB / 296.1 MB, free: 24.09 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001583/0.1437, allocations: 151.9 kB / 296.2 MB, free: 24.01 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.805e-05/0.1438, allocations: 0.5546 MB / 296.8 MB, free: 23.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002438/0.1441, allocations: 141.2 kB / 296.9 MB, free: 23.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003091/0.1444, allocations: 336.3 kB / 297.2 MB, free: 23.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000571/0.145, allocations: 0.5212 MB / 297.8 MB, free: 22.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/0.145, allocations: 1.188 kB / 297.8 MB, free: 22.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001073/0.146, allocations: 0.7659 MB / 298.5 MB, free: 22.69 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.1461, allocations: 10.61 kB / 298.5 MB, free: 22.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.1461, allocations: 3.625 kB / 298.5 MB, free: 22.69 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003711/0.1464, allocations: 162.2 kB / 298.7 MB, free: 22.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004644/0.1469, allocations: 194.9 kB / 298.9 MB, free: 22.63 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001792/0.1487, allocations: 2.785 MB / 301.7 MB, free: 20.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002778/0.149, allocations: 30.38 kB / 301.7 MB, free: 20.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.989e-05/0.149, allocations: 35.47 kB / 301.7 MB, free: 20.29 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.0001455/0.1492, allocations: 196.3 kB / 301.9 MB, free: 20.1 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.972e-05/0.1493, allocations: 97.88 kB / 302 MB, free: 20.05 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.218e-05/0.1493, allocations: 96.09 kB / 302.1 MB, free: 19.98 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1493, allocations: 6.953 kB / 302.1 MB, free: 19.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/0.1493, allocations: 3.844 kB / 302.1 MB, free: 19.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.1493, allocations: 4.922 kB / 302.1 MB, free: 19.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005477/0.1499, allocations: 0.5556 MB / 302.7 MB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1499, allocations: 2.219 kB / 302.7 MB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003505/0.1503, allocations: 137.6 kB / 302.8 MB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000366/0.1506, allocations: 165.1 kB / 303 MB, free: 19.63 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.995e-05/0.1507, allocations: 22.14 kB / 303 MB, free: 19.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0017/0.1524, allocations: 2.782 MB / 305.8 MB, free: 17.3 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1524, allocations: 5.062 kB / 305.8 MB, free: 17.3 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.1535, allocations: 0.936 MB / 306.7 MB, free: 16.88 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.394e-05/0.1535, allocations: 69.02 kB / 306.8 MB, free: 16.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.184e-05/0.1536, allocations: 19.47 kB / 306.8 MB, free: 16.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003232/0.1539, allocations: 42.55 kB / 306.9 MB, free: 16.82 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.779e-05/0.154, allocations: 56.62 kB / 306.9 MB, free: 16.81 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.478e-05/0.154, allocations: 27.17 kB / 306.9 MB, free: 16.8 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000239/0.1543, allocations: 360.7 kB / 307.3 MB, free: 16.63 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1543, allocations: 5.188 kB / 307.3 MB, free: 16.62 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005314/0.1548, allocations: 241.3 kB / 307.5 MB, free: 16.6 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.0001475/0.155, allocations: 128.8 kB / 307.7 MB, free: 16.5 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009117/0.1559, allocations: 0.7743 MB / 308.4 MB, free: 16.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1559, allocations: 1.688 kB / 308.4 MB, free: 16.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005236/0.1564, allocations: 0.5517 MB / 309 MB, free: 15.87 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003889/0.1568, allocations: 147.2 kB / 309.1 MB, free: 15.82 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.1585, allocations: 1.709 MB / 310.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.809e-05/0.1586, allocations: 171.3 kB / 311 MB, free: 14.41 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001768/0.1588, allocations: 89.11 kB / 311.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.1589, allocations: 52.48 kB / 311.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of SimCode: time 4.41e-07/0.1589, allocations: 0 / 311.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of Templates: time 0.01135/0.1703, allocations: 11.47 MB / 322.6 MB, free: 3.035 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.070928345900029]