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.001797/0.001797, allocations: 88.48 kB / 20.95 MB, free: 464 kB / 14.72 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.002079/0.002079, allocations: 150 kB / 24.24 MB, free: 3.523 MB / 14.72 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.425/1.425, allocations: 173.3 MB / 200.8 MB, free: 12.7 MB / 190.1 MB " [Timeout remaining time 178] 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.603e-06/1.603e-06, allocations: 0 / 267.3 MB, free: 10.16 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.669e-05/2.829e-05, allocations: 5.125 kB / 267.3 MB, free: 10.16 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007169/0.007198, allocations: 5.333 MB / 272.7 MB, free: 4.793 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002946/0.01014, allocations: 1.498 MB / 274.2 MB, free: 3.285 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003773/0.01052, allocations: 19.94 kB / 274.2 MB, free: 3.266 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003745/0.0109, allocations: 170.3 kB / 274.3 MB, free: 3.098 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005982/0.01149, allocations: 309 kB / 274.7 MB, free: 2.793 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008507/0.01234, allocations: 423.2 kB / 275.1 MB, free: 2.379 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.001516/0.01386, allocations: 1.433 MB / 276.5 MB, free: 0.9414 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004938/0.01435, allocations: 285.7 kB / 276.8 MB, free: 0.6406 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001073/0.01543, allocations: 0.7642 MB / 277.5 MB, free: 15.88 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006159/0.01604, allocations: 430.8 kB / 278 MB, free: 15.45 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001843/0.01623, allocations: 136 kB / 278.1 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002987/0.01653, allocations: 175.9 kB / 278.3 MB, free: 15.15 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002418/0.01677, allocations: 279 kB / 278.5 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004538/0.01722, allocations: 419.1 kB / 278.9 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001749/0.01897, allocations: 1.608 MB / 280.6 MB, free: 12.85 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.01898, allocations: 3.984 kB / 280.6 MB, free: 12.85 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.01898, allocations: 0 / 280.6 MB, free: 12.85 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.764e-05/0.019, allocations: 0 / 280.6 MB, free: 12.85 MB / 270.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.002927/0.02192, allocations: 1.319 MB / 281.9 MB, free: 11.5 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.02196, allocations: 8.922 kB / 281.9 MB, free: 11.49 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003134/0.02228, allocations: 192.2 kB / 282.1 MB, free: 11.3 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.02328, allocations: 0.5049 MB / 282.6 MB, free: 10.77 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.344e-05/0.02335, allocations: 66.38 kB / 282.6 MB, free: 10.7 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001582/0.02351, allocations: 92.33 kB / 282.7 MB, free: 10.61 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001864/0.02538, allocations: 1.102 MB / 283.8 MB, free: 9.445 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.0254, allocations: 4.188 kB / 283.8 MB, free: 9.441 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.166e-05/0.02549, allocations: 36.38 kB / 283.9 MB, free: 9.406 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.609e-05/0.02552, allocations: 23.94 kB / 283.9 MB, free: 9.383 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00179/0.02731, allocations: 0.8433 MB / 284.7 MB, free: 8.539 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005778/0.03309, allocations: 2.813 MB / 287.6 MB, free: 5.617 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.03435, allocations: 0.6145 MB / 288.2 MB, free: 4.988 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007487/0.0351, allocations: 399.2 kB / 288.6 MB, free: 4.594 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.955e-05/0.03517, allocations: 20.64 kB / 288.6 MB, free: 4.57 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.537e-05/0.03521, allocations: 43.22 kB / 288.6 MB, free: 4.52 MB / 270.1 MB Notification: Performance of pre-optimization done (n=69): time 2.505e-06/0.03522, allocations: 0 / 288.6 MB, free: 4.52 MB / 270.1 MB Notification: Performance of matching and sorting (n=73): time 0.004947/0.04016, allocations: 2.202 MB / 290.8 MB, free: 2.285 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.826e-05/0.04022, allocations: 60.06 kB / 290.9 MB, free: 2.215 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007037/0.04092, allocations: 0.5575 MB / 291.4 MB, free: 1.648 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.327e-05/0.04099, allocations: 45.64 kB / 291.5 MB, free: 1.598 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003472/0.04133, allocations: 444.3 kB / 291.9 MB, free: 1.156 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002402/0.04157, allocations: 281.7 kB / 292.2 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002808/0.04186, allocations: 146.6 kB / 292.3 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002102/0.04207, allocations: 382.8 kB / 292.7 MB, free: 356 kB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000677/0.04274, allocations: 321.9 kB / 293 MB, free: 32 kB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000847/0.04359, allocations: 472.6 kB / 293.5 MB, free: 15.52 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/0.0451, allocations: 0.8008 MB / 294.3 MB, free: 14.67 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.0451, allocations: 0 / 294.3 MB, free: 14.67 MB / 286.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002378/0.04748, allocations: 1.146 MB / 295.4 MB, free: 13.51 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.0475, allocations: 8 kB / 295.4 MB, free: 13.5 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.04751, allocations: 4 kB / 295.4 MB, free: 13.5 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006526/0.04817, allocations: 202.7 kB / 295.6 MB, free: 13.3 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009303/0.0491, allocations: 195.8 kB / 295.8 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004169/0.05326, allocations: 2.742 MB / 298.6 MB, free: 10.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006684/0.05393, allocations: 36.17 kB / 298.6 MB, free: 10.24 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.798e-05/0.05401, allocations: 39.98 kB / 298.7 MB, free: 10.2 MB / 286.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.0004027/0.05441, allocations: 229.7 kB / 298.9 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.0546, allocations: 99.53 kB / 299 MB, free: 9.867 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002022/0.0548, allocations: 90.59 kB / 299.1 MB, free: 9.773 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.05481, allocations: 8 kB / 299.1 MB, free: 9.766 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/0.05482, allocations: 4 kB / 299.1 MB, free: 9.762 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.05483, allocations: 7.922 kB / 299.1 MB, free: 9.754 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000917/0.05575, allocations: 0.5997 MB / 299.7 MB, free: 9.125 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.05575, allocations: 0 / 299.7 MB, free: 9.125 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007659/0.05652, allocations: 151.8 kB / 299.8 MB, free: 8.977 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000592/0.05711, allocations: 199.5 kB / 300 MB, free: 8.781 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.558e-05/0.05717, allocations: 19.98 kB / 300 MB, free: 8.762 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003931/0.0611, allocations: 2.753 MB / 302.8 MB, free: 5.914 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.0611, allocations: 0 / 302.8 MB, free: 5.914 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002796/0.06389, allocations: 1.436 MB / 304.2 MB, free: 4.457 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001418/0.06404, allocations: 67.52 kB / 304.3 MB, free: 4.391 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.39e-05/0.06413, allocations: 20 kB / 304.3 MB, free: 4.371 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006285/0.06476, allocations: 51.95 kB / 304.4 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.0649, allocations: 52.55 kB / 304.4 MB, free: 4.27 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-05/0.06496, allocations: 23.98 kB / 304.4 MB, free: 4.246 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000503/0.06546, allocations: 386.7 kB / 304.8 MB, free: 3.871 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.06546, allocations: 4 kB / 304.8 MB, free: 3.867 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008611/0.06632, allocations: 243.9 kB / 305.1 MB, free: 3.629 MB / 286.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.0002779/0.0666, allocations: 127.3 kB / 305.2 MB, free: 3.492 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002367/0.06896, allocations: 0.9974 MB / 306.2 MB, free: 2.484 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.06897, allocations: 0 / 306.2 MB, free: 2.484 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001432/0.0704, allocations: 0.619 MB / 306.8 MB, free: 1.848 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007352/0.07114, allocations: 134.4 kB / 306.9 MB, free: 1.719 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1241/0.1952, allocations: 1.833 MB / 308.8 MB, free: 48.8 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000509/0.1957, allocations: 395.8 kB / 309.2 MB, free: 48.69 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0005068/0.1962, allocations: 81.12 kB / 309.2 MB, free: 48.69 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.1964, allocations: 55.83 kB / 309.3 MB, free: 48.68 MB / 286.1 MB Notification: Performance of SimCode: time 1.252e-06/0.1964, allocations: 0 / 309.3 MB, free: 48.68 MB / 286.1 MB Notification: Performance of Templates: time 0.01887/0.2153, allocations: 10.82 MB / 320.1 MB, free: 45.48 MB / 286.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.7060211300849915]