Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.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.001414/0.001414, allocations: 79.91 kB / 21.18 MB, free: 3.383 MB / 18.57 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.001468/0.001468, allocations: 145.1 kB / 24.54 MB, free: 28 kB / 18.57 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 0.9794/0.9794, allocations: 173.4 MB / 201.1 MB, free: 9.332 MB / 186.7 MB " [Timeout remaining time 179] 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.OpAmps.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 268 MB, free: 6.391 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.612e-05/2.774e-05, allocations: 6.25 kB / 268 MB, free: 6.383 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.004273/0.004301, allocations: 4.407 MB / 272.4 MB, free: 1.953 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001612/0.005913, allocations: 1.187 MB / 273.6 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001767/0.00609, allocations: 11.94 kB / 273.6 MB, free: 0.75 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003551/0.006445, allocations: 146.8 kB / 273.8 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003134/0.006758, allocations: 214.1 kB / 274 MB, free: 404 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003441/0.007102, allocations: 207.5 kB / 274.2 MB, free: 196 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005406/0.007643, allocations: 0.786 MB / 275 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002636/0.007907, allocations: 183 kB / 275.2 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003803/0.008287, allocations: 435 kB / 275.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002452/0.008532, allocations: 247.2 kB / 275.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.435e-05/0.008596, allocations: 64 kB / 275.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.52e-05/0.008662, allocations: 64 kB / 276 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.765e-05/0.008749, allocations: 155.4 kB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001512/0.0089, allocations: 235.4 kB / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003834/0.009284, allocations: 0.4942 MB / 276.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.009288, allocations: 0 / 276.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.009289, allocations: 0 / 276.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.009296, allocations: 0 / 276.8 MB, free: 13.55 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001048/0.01034, allocations: 1.029 MB / 277.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.01038, allocations: 8.031 kB / 277.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.0105, allocations: 120.5 kB / 278 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003484/0.01085, allocations: 362.3 kB / 278.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.627e-05/0.01087, allocations: 45.62 kB / 278.4 MB, free: 11.92 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.659e-05/0.01093, allocations: 60.36 kB / 278.4 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005526/0.01148, allocations: 0.6109 MB / 279.1 MB, free: 11.19 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.0115, allocations: 192 / 279.1 MB, free: 11.19 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.237e-05/0.01153, allocations: 23.94 kB / 279.1 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.01154, allocations: 16 kB / 279.1 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002926/0.01183, allocations: 219.7 kB / 279.3 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001614/0.01345, allocations: 1.599 MB / 280.9 MB, free: 9.262 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003747/0.01382, allocations: 299.5 kB / 281.2 MB, free: 8.961 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004869/0.01431, allocations: 360 kB / 281.6 MB, free: 8.605 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.01433, allocations: 8.328 kB / 281.6 MB, free: 8.598 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000288/0.01462, allocations: 434.2 kB / 282 MB, free: 8.082 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 2.875e-06/0.01462, allocations: 8 kB / 282 MB, free: 8.074 MB / 266.7 MB Notification: Performance of matching and sorting (n=41): time 0.001642/0.01626, allocations: 0.8005 MB / 282.8 MB, free: 7.262 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.624e-05/0.01635, allocations: 239.3 kB / 283 MB, free: 6.973 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003278/0.01668, allocations: 442.5 kB / 283.5 MB, free: 6.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/0.01671, allocations: 33.7 kB / 283.5 MB, free: 6.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001609/0.01687, allocations: 367.4 kB / 283.9 MB, free: 6.117 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.405e-05/0.01695, allocations: 142.8 kB / 284 MB, free: 5.977 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.01705, allocations: 99.8 kB / 284.1 MB, free: 5.871 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.01719, allocations: 0.5274 MB / 284.6 MB, free: 5.332 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.0173, allocations: 68.95 kB / 284.7 MB, free: 5.266 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002617/0.01756, allocations: 486 kB / 285.2 MB, free: 4.648 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003076/0.01787, allocations: 352.5 kB / 285.5 MB, free: 4.238 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.01787, allocations: 3.938 kB / 285.5 MB, free: 4.234 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007025/0.01857, allocations: 0.5517 MB / 286.1 MB, free: 3.672 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.01859, allocations: 4 kB / 286.1 MB, free: 3.668 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.0186, allocations: 4 kB / 286.1 MB, free: 3.664 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005369/0.01913, allocations: 238.3 kB / 286.3 MB, free: 3.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.01931, allocations: 91.83 kB / 286.4 MB, free: 3.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001964/0.02128, allocations: 2.751 MB / 289.1 MB, free: 480 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002194/0.0215, allocations: 79.64 kB / 289.2 MB, free: 400 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.02152, allocations: 16 kB / 289.2 MB, free: 384 kB / 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: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0001366/0.02165, allocations: 196.4 kB / 289.4 MB, free: 176 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.343e-05/0.02171, allocations: 63.72 kB / 289.5 MB, free: 112 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.724e-05/0.02175, allocations: 52.72 kB / 289.5 MB, free: 60 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.02176, allocations: 4 kB / 289.5 MB, free: 56 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.02176, allocations: 0 / 289.5 MB, free: 56 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.02177, allocations: 7.984 kB / 289.5 MB, free: 48 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.107/0.1288, allocations: 0.923 MB / 290.5 MB, free: 29.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.1288, allocations: 0 / 290.5 MB, free: 29.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001622/0.129, allocations: 47.77 kB / 290.5 MB, free: 29.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005936/0.1296, allocations: 235.2 kB / 290.7 MB, free: 29.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.91e-05/0.1296, allocations: 7.328 kB / 290.8 MB, free: 29.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002129/0.1317, allocations: 2.722 MB / 293.5 MB, free: 27.39 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1317, allocations: 0 / 293.5 MB, free: 27.39 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009279/0.1326, allocations: 0.6692 MB / 294.1 MB, free: 27.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.1327, allocations: 52.41 kB / 294.2 MB, free: 27.16 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.213e-05/0.1328, allocations: 12.8 kB / 294.2 MB, free: 27.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001869/0.133, allocations: 43.11 kB / 294.3 MB, free: 27.16 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.1331, allocations: 34.77 kB / 294.3 MB, free: 27.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.067e-05/0.1331, allocations: 12.98 kB / 294.3 MB, free: 27.16 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002386/0.1334, allocations: 289.5 kB / 294.6 MB, free: 27.03 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1334, allocations: 2.812 kB / 294.6 MB, free: 27.03 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005807/0.1339, allocations: 180.3 kB / 294.8 MB, free: 27.02 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001411/0.1341, allocations: 108.9 kB / 294.9 MB, free: 26.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007504/0.1348, allocations: 0.5073 MB / 295.4 MB, free: 26.72 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.1348, allocations: 0 / 295.4 MB, free: 26.72 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003717/0.1352, allocations: 385.1 kB / 295.8 MB, free: 26.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003624/0.1356, allocations: 75.25 kB / 295.8 MB, free: 26.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.1372, allocations: 0.8754 MB / 296.7 MB, free: 26.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001182/0.1373, allocations: 126.5 kB / 296.8 MB, free: 26 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001401/0.1374, allocations: 43.14 kB / 296.9 MB, free: 25.99 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.704e-05/0.1375, allocations: 33.03 kB / 296.9 MB, free: 25.98 MB / 266.7 MB Notification: Performance of SimCode: time 1.222e-06/0.1375, allocations: 0 / 296.9 MB, free: 25.98 MB / 266.7 MB Notification: Performance of Templates: time 0.0115/0.149, allocations: 6.937 MB / 303.8 MB, free: 24.11 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.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.0069853556342423]