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.001763/0.001763, allocations: 73.17 kB / 21.24 MB, free: 0.5547 MB / 14.72 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.002171/0.002171, allocations: 158.3 kB / 24.5 MB, free: 3.715 MB / 14.72 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 1.563/1.563, allocations: 177.2 MB / 204.9 MB, free: 8.984 MB / 190.1 MB " [Timeout remaining time 178] 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 0.00158/0.00158, allocations: 51.11 kB / 325.6 MB, free: 224 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1031, allocations: 53.34 MB / 378.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.00691/0.11, allocations: 5.361 MB / 384.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002825/0.1128, allocations: 1.506 MB / 385.8 MB, free: 8.715 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003202/0.1132, allocations: 15.94 kB / 385.8 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003714/0.1135, allocations: 182.2 kB / 386 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000552/0.1141, allocations: 301.2 kB / 386.3 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000779/0.1149, allocations: 411.4 kB / 386.7 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001432/0.1163, allocations: 1.395 MB / 388.1 MB, free: 6.422 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004624/0.1167, allocations: 285.6 kB / 388.4 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006269/0.1174, allocations: 0.5023 MB / 388.9 MB, free: 5.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006804/0.1181, allocations: 0.4977 MB / 389.4 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001872/0.1182, allocations: 136 kB / 389.5 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003139/0.1186, allocations: 184 kB / 389.7 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002549/0.1188, allocations: 271.1 kB / 389.9 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005333/0.1193, allocations: 0.4901 MB / 390.4 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001617/0.121, allocations: 1.557 MB / 392 MB, free: 2.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.121, allocations: 0 / 392 MB, free: 2.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.121, allocations: 0 / 392 MB, free: 2.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.006e-05/0.121, allocations: 3.938 kB / 392 MB, free: 2.477 MB / 350.1 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.002775/0.1238, allocations: 1.33 MB / 393.3 MB, free: 1.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.1238, allocations: 8.031 kB / 393.3 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003489/0.1241, allocations: 132.2 kB / 393.4 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008426/0.125, allocations: 0.4978 MB / 393.9 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.558e-05/0.1251, allocations: 66.38 kB / 394 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001446/0.1252, allocations: 88.38 kB / 394.1 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001763/0.127, allocations: 1.114 MB / 395.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.228e-05/0.127, allocations: 0 / 395.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.653e-05/0.1271, allocations: 40 kB / 395.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.997e-05/0.1271, allocations: 20 kB / 395.3 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001725/0.1288, allocations: 0.8472 MB / 396.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005413/0.1343, allocations: 2.766 MB / 398.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.1354, allocations: 0.6188 MB / 399.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000728/0.1361, allocations: 398.4 kB / 399.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.461e-05/0.1362, allocations: 12.66 kB / 399.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.124e-05/0.1362, allocations: 51.16 kB / 400 MB, free: 10.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 1.984e-06/0.1362, allocations: 0 / 400 MB, free: 10.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.004616/0.1409, allocations: 2.201 MB / 402.2 MB, free: 8.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.816e-05/0.1409, allocations: 56.06 kB / 402.2 MB, free: 7.953 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000728/0.1416, allocations: 0.5575 MB / 402.8 MB, free: 7.387 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.601e-05/0.1417, allocations: 41.64 kB / 402.8 MB, free: 7.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003454/0.142, allocations: 452.3 kB / 403.2 MB, free: 6.891 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002251/0.1423, allocations: 277.6 kB / 403.5 MB, free: 6.617 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002576/0.1425, allocations: 146.6 kB / 403.7 MB, free: 6.469 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002671/0.1428, allocations: 386.8 kB / 404 MB, free: 6.082 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006962/0.1435, allocations: 325.9 kB / 404.4 MB, free: 5.762 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000808/0.1443, allocations: 460.6 kB / 404.8 MB, free: 5.262 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001523/0.1458, allocations: 0.8125 MB / 405.6 MB, free: 4.402 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1458, allocations: 0 / 405.6 MB, free: 4.402 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002318/0.1481, allocations: 1.103 MB / 406.7 MB, free: 3.289 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.1482, allocations: 7.938 kB / 406.7 MB, free: 3.281 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.1482, allocations: 4 kB / 406.7 MB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005852/0.1487, allocations: 184.7 kB / 406.9 MB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009102/0.1497, allocations: 199.8 kB / 407.1 MB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003951/0.1536, allocations: 2.727 MB / 409.8 MB, free: 76 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006208/0.1542, allocations: 36.03 kB / 409.9 MB, free: 40 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.588e-05/0.1543, allocations: 28 kB / 409.9 MB, free: 12 kB / 366.1 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.0003616/0.1547, allocations: 225.7 kB / 410.1 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.1548, allocations: 83.52 kB / 410.2 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001882/0.155, allocations: 90.53 kB / 410.3 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-06/0.155, allocations: 8 kB / 410.3 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.155, allocations: 4 kB / 410.3 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.365e-06/0.155, allocations: 3.984 kB / 410.3 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008687/0.1559, allocations: 0.6077 MB / 410.9 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.1559, allocations: 4 kB / 410.9 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007524/0.1567, allocations: 147.8 kB / 411.1 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005127/0.1572, allocations: 187.5 kB / 411.2 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.115e-05/0.1572, allocations: 23.98 kB / 411.3 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003844/0.1611, allocations: 2.732 MB / 414 MB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.1611, allocations: 3.984 kB / 414 MB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002743/0.1638, allocations: 1.416 MB / 415.4 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/0.1639, allocations: 63.53 kB / 415.5 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.492e-05/0.164, allocations: 19.98 kB / 415.5 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006216/0.1646, allocations: 55.91 kB / 415.6 MB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.1648, allocations: 56.53 kB / 415.6 MB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-05/0.1648, allocations: 20 kB / 415.6 MB, free: 10.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004595/0.1653, allocations: 386.8 kB / 416 MB, free: 9.738 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1653, allocations: 96 / 416 MB, free: 9.738 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008/0.1661, allocations: 243.9 kB / 416.2 MB, free: 9.5 MB / 382.1 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.0002155/0.1663, allocations: 127.2 kB / 416.4 MB, free: 9.363 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002264/0.1686, allocations: 0.9946 MB / 417.4 MB, free: 8.352 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.1686, allocations: 4.125 kB / 417.4 MB, free: 8.348 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001407/0.17, allocations: 0.6113 MB / 418 MB, free: 7.723 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006695/0.1706, allocations: 133.3 kB / 418.1 MB, free: 7.598 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003287/0.1739, allocations: 2.003 MB / 420.1 MB, free: 5.566 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004449/0.1744, allocations: 395 kB / 420.5 MB, free: 5.148 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003506/0.1747, allocations: 81.12 kB / 420.6 MB, free: 5.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001669/0.1749, allocations: 52.48 kB / 420.6 MB, free: 5.02 MB / 382.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1749, allocations: 0 / 420.6 MB, free: 5.02 MB / 382.1 MB Notification: Performance of Templates: time 0.02048/0.1954, allocations: 10.84 MB / 431.5 MB, free: 10.35 MB / 398.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.846537397010252]