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.00151/0.00151, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001805/0.001805, allocations: 160.5 kB / 24.55 MB, free: 16 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.952/0.952, allocations: 177 MB / 204.8 MB, free: 5.59 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.483e-06/1.483e-06, allocations: 0 / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.569e-05/1.717e-05, allocations: 5.266 kB / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004951/0.004968, allocations: 5.946 MB / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.006776, allocations: 1.544 MB / 280.4 MB, free: 9.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002371/0.007014, allocations: 19.94 kB / 280.4 MB, free: 9.891 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002829/0.007297, allocations: 166.3 kB / 280.6 MB, free: 9.727 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000362/0.007659, allocations: 313 kB / 280.9 MB, free: 9.418 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000628/0.008287, allocations: 427.2 kB / 281.3 MB, free: 9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008388/0.009125, allocations: 1.433 MB / 282.8 MB, free: 7.562 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000334/0.009459, allocations: 281.7 kB / 283 MB, free: 7.266 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005959/0.01006, allocations: 0.7681 MB / 283.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000382/0.01044, allocations: 458.7 kB / 284.3 MB, free: 6.047 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001165/0.01055, allocations: 136 kB / 284.4 MB, free: 5.914 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001996/0.01075, allocations: 175.9 kB / 284.6 MB, free: 5.742 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001344/0.01089, allocations: 279.1 kB / 284.8 MB, free: 5.469 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002653/0.01115, allocations: 423 kB / 285.2 MB, free: 5.055 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009283/0.01208, allocations: 0.9578 MB / 286.2 MB, free: 4.094 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.574e-06/0.01208, allocations: 3.938 kB / 286.2 MB, free: 4.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.01208, allocations: 0 / 286.2 MB, free: 4.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.01209, allocations: 7.938 kB / 286.2 MB, free: 4.082 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.001445/0.01354, allocations: 1.418 MB / 287.6 MB, free: 2.625 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.01357, allocations: 12.03 kB / 287.6 MB, free: 2.613 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002681/0.01384, allocations: 200.2 kB / 287.8 MB, free: 2.418 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004758/0.01432, allocations: 0.5037 MB / 288.3 MB, free: 1.887 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.81e-05/0.01436, allocations: 66.38 kB / 288.4 MB, free: 1.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.917e-05/0.01445, allocations: 96.36 kB / 288.5 MB, free: 1.727 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008207/0.01528, allocations: 0.8569 MB / 289.4 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.01529, allocations: 192 / 289.4 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.16e-05/0.01534, allocations: 36.38 kB / 289.4 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.847e-05/0.01536, allocations: 27.92 kB / 289.4 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006115/0.01597, allocations: 423.6 kB / 289.8 MB, free: 332 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1132/0.1292, allocations: 2.612 MB / 292.5 MB, free: 25.61 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007448/0.1299, allocations: 442.2 kB / 292.9 MB, free: 25.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003881/0.1303, allocations: 228.8 kB / 293.1 MB, free: 25.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.534e-05/0.1304, allocations: 15.62 kB / 293.1 MB, free: 25.54 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.1304, allocations: 45.47 kB / 293.2 MB, free: 25.5 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 3.647e-06/0.1304, allocations: 0 / 293.2 MB, free: 25.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002818/0.1332, allocations: 1.5 MB / 294.7 MB, free: 25.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.334e-05/0.1332, allocations: 59.66 kB / 294.7 MB, free: 24.95 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005105/0.1337, allocations: 0.5477 MB / 295.3 MB, free: 24.68 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.03e-05/0.1338, allocations: 37.95 kB / 295.3 MB, free: 24.64 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002032/0.134, allocations: 499.5 kB / 295.8 MB, free: 24.28 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001342/0.1341, allocations: 270.1 kB / 296.1 MB, free: 24.1 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002044/0.1343, allocations: 153.4 kB / 296.2 MB, free: 24.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.891e-05/0.1344, allocations: 0.554 MB / 296.8 MB, free: 23.49 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003212/0.1347, allocations: 144.2 kB / 296.9 MB, free: 23.47 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003999/0.1351, allocations: 336.7 kB / 297.2 MB, free: 23.24 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007127/0.1359, allocations: 0.522 MB / 297.8 MB, free: 22.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/0.1359, allocations: 1.469 kB / 297.8 MB, free: 22.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001344/0.1372, allocations: 0.7586 MB / 298.5 MB, free: 22.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.1372, allocations: 7.656 kB / 298.5 MB, free: 22.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.1372, allocations: 7.875 kB / 298.5 MB, free: 22.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004714/0.1377, allocations: 160 kB / 298.7 MB, free: 22.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006211/0.1383, allocations: 191.5 kB / 298.9 MB, free: 22.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002227/0.1406, allocations: 2.786 MB / 301.7 MB, free: 20.33 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003593/0.1409, allocations: 33.03 kB / 301.7 MB, free: 20.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.587e-05/0.141, allocations: 34.95 kB / 301.7 MB, free: 20.3 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.0001771/0.1411, allocations: 201.2 kB / 301.9 MB, free: 20.11 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/0.1413, allocations: 102.1 kB / 302 MB, free: 20.06 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.967e-05/0.1414, allocations: 92.05 kB / 302.1 MB, free: 19.99 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.1414, allocations: 7.531 kB / 302.1 MB, free: 19.99 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.1414, allocations: 6.375 kB / 302.1 MB, free: 19.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.1414, allocations: 5.109 kB / 302.1 MB, free: 19.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00067/0.1421, allocations: 0.5544 MB / 302.7 MB, free: 19.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.1421, allocations: 4.594 kB / 302.7 MB, free: 19.69 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004783/0.1426, allocations: 137.2 kB / 302.8 MB, free: 19.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004245/0.143, allocations: 161 kB / 303 MB, free: 19.64 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.688e-05/0.143, allocations: 26.08 kB / 303 MB, free: 19.63 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002129/0.1452, allocations: 2.78 MB / 305.8 MB, free: 17.31 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1452, allocations: 0 / 305.8 MB, free: 17.31 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001376/0.1465, allocations: 0.9352 MB / 306.7 MB, free: 16.89 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.26e-05/0.1466, allocations: 72.88 kB / 306.8 MB, free: 16.85 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.136e-05/0.1467, allocations: 16.19 kB / 306.8 MB, free: 16.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003616/0.147, allocations: 46.12 kB / 306.9 MB, free: 16.82 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.1472, allocations: 53.69 kB / 306.9 MB, free: 16.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.461e-05/0.1472, allocations: 23.44 kB / 306.9 MB, free: 16.81 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003028/0.1475, allocations: 360 kB / 307.3 MB, free: 16.64 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1475, allocations: 4 kB / 307.3 MB, free: 16.64 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007079/0.1482, allocations: 241.5 kB / 307.5 MB, free: 16.61 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.0001799/0.1484, allocations: 137.5 kB / 307.7 MB, free: 16.5 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001183/0.1496, allocations: 0.7762 MB / 308.4 MB, free: 16.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.1496, allocations: 0.8125 kB / 308.4 MB, free: 16.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006977/0.1503, allocations: 0.5486 MB / 309 MB, free: 15.88 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005449/0.1508, allocations: 147.1 kB / 309.1 MB, free: 15.83 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002258/0.1531, allocations: 1.707 MB / 310.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001055/0.1532, allocations: 175.3 kB / 311 MB, free: 14.43 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002479/0.1534, allocations: 85.11 kB / 311.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.1536, allocations: 60.47 kB / 311.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of SimCode: time 7.72e-07/0.1536, allocations: 0 / 311.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of Templates: time 0.01297/0.1665, allocations: 10.93 MB / 322.1 MB, free: 3.598 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.0487566920928657]