Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.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.0009058/0.0009058, allocations: 84 kB / 21.19 MB, free: 3.395 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.0008335/0.0008335, allocations: 145.1 kB / 24.54 MB, free: 44 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.895/0.895, allocations: 173.4 MB / 201.2 MB, free: 9.328 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.AmplifierWithOpAmpDetailed,tolerance=2e-07,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|opAmp.q_fp1|opAmp.q_fr1|opAmp.q_fr2|opAmp.q_fr3|opAmp.v_in|opAmp.v_source|opAmp.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") translateModel(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,tolerance=2e-07,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|opAmp.q_fp1|opAmp.q_fr1|opAmp.q_fr2|opAmp.q_fr3|opAmp.v_in|opAmp.v_source|opAmp.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.522e-05/1.665e-05, allocations: 2.312 kB / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.004049/0.004066, allocations: 3.19 MB / 271.2 MB, free: 3.211 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001404/0.00547, allocations: 0.9427 MB / 272.1 MB, free: 2.262 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.005606, allocations: 4 kB / 272.1 MB, free: 2.258 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001339/0.00574, allocations: 63.36 kB / 272.2 MB, free: 2.195 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002487/0.005988, allocations: 126.8 kB / 272.3 MB, free: 2.07 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002683/0.006257, allocations: 155.6 kB / 272.5 MB, free: 1.918 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003985/0.006655, allocations: 0.4938 MB / 273 MB, free: 1.422 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001484/0.006803, allocations: 91.67 kB / 273.1 MB, free: 1.328 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002752/0.007079, allocations: 283.4 kB / 273.3 MB, free: 1.051 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.007231, allocations: 159.5 kB / 273.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.852e-05/0.007279, allocations: 36 kB / 273.5 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001134/0.007393, allocations: 71.91 kB / 273.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.729e-05/0.00745, allocations: 95.64 kB / 273.7 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.007552, allocations: 151.7 kB / 273.8 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003905/0.007942, allocations: 358.7 kB / 274.2 MB, free: 200 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.007944, allocations: 0 / 274.2 MB, free: 200 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.007945, allocations: 0 / 274.2 MB, free: 200 kB / 250.7 MB Notification: Performance of Transformations before backend: time 9.387e-06/0.007955, allocations: 4 kB / 274.2 MB, free: 196 kB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009343/0.008889, allocations: 0.7528 MB / 274.9 MB, free: 15.4 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.036e-05/0.008919, allocations: 12.92 kB / 275 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.488e-05/0.009004, allocations: 68.66 kB / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002427/0.009247, allocations: 255.3 kB / 275.3 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.009265, allocations: 29.03 kB / 275.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.412e-05/0.009309, allocations: 48.31 kB / 275.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003804/0.009689, allocations: 386.8 kB / 275.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.0097, allocations: 4.125 kB / 275.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.234e-05/0.009723, allocations: 12.38 kB / 275.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.009734, allocations: 11.94 kB / 275.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001871/0.009921, allocations: 123.8 kB / 275.9 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.01107, allocations: 0.9921 MB / 276.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003037/0.01137, allocations: 192.1 kB / 277.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002343/0.01161, allocations: 160.1 kB / 277.2 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001541/0.01176, allocations: 76.16 kB / 277.3 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.01178, allocations: 37.62 kB / 277.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of pre-optimization done (n=27): time 1.483e-06/0.01178, allocations: 0 / 277.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.0006415/0.01243, allocations: 347.5 kB / 277.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.519e-05/0.01246, allocations: 81.11 kB / 277.7 MB, free: 12.42 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002033/0.01266, allocations: 334.2 kB / 278.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.01268, allocations: 29.7 kB / 278.1 MB, free: 12.04 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.0128, allocations: 267 kB / 278.4 MB, free: 11.77 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.575e-05/0.01286, allocations: 107.1 kB / 278.5 MB, free: 11.67 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.071e-05/0.01294, allocations: 79.67 kB / 278.5 MB, free: 11.58 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.01307, allocations: 0.5118 MB / 279.1 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.01318, allocations: 56.66 kB / 279.1 MB, free: 11 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001491/0.01333, allocations: 187.8 kB / 279.3 MB, free: 10.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000233/0.01356, allocations: 228.6 kB / 279.5 MB, free: 10.51 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.01356, allocations: 0 / 279.5 MB, free: 10.51 MB / 266.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0003981/0.01396, allocations: 336.2 kB / 279.8 MB, free: 10.17 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.01397, allocations: 4 kB / 279.8 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.01398, allocations: 11.94 kB / 279.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002079/0.01419, allocations: 79.81 kB / 279.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.01435, allocations: 67.91 kB / 280 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001338/0.01569, allocations: 2.278 MB / 282.3 MB, free: 7.605 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.0158, allocations: 31.78 kB / 282.3 MB, free: 7.574 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.01582, allocations: 15.98 kB / 282.3 MB, free: 7.559 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (37): * Single equations (assignments): 36 * 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001001/0.01592, allocations: 176.5 kB / 282.5 MB, free: 7.375 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.362e-05/0.01596, allocations: 35.81 kB / 282.5 MB, free: 7.34 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003014/0.01627, allocations: 253.2 kB / 282.8 MB, free: 7.078 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.01627, allocations: 0 / 282.8 MB, free: 7.078 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-06/0.01627, allocations: 0 / 282.8 MB, free: 7.078 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.01627, allocations: 3.984 kB / 282.8 MB, free: 7.074 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002283/0.0165, allocations: 268.3 kB / 283 MB, free: 6.777 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.01651, allocations: 7.984 kB / 283.1 MB, free: 6.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.01667, allocations: 47.97 kB / 283.1 MB, free: 6.723 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001264/0.01679, allocations: 51.66 kB / 283.2 MB, free: 6.668 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.01681, allocations: 15.92 kB / 283.2 MB, free: 6.652 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003102/0.01712, allocations: 0.8429 MB / 284 MB, free: 5.777 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.01712, allocations: 0 / 284 MB, free: 5.777 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000379/0.0175, allocations: 451.9 kB / 284.5 MB, free: 5.309 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.799e-05/0.01753, allocations: 31.75 kB / 284.5 MB, free: 5.277 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.504e-05/0.01756, allocations: 7.938 kB / 284.5 MB, free: 5.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.01766, allocations: 24.02 kB / 284.5 MB, free: 5.246 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.902e-05/0.0177, allocations: 11.97 kB / 284.5 MB, free: 5.234 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.01772, allocations: 15.98 kB / 284.5 MB, free: 5.219 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001227/0.01784, allocations: 223 kB / 284.8 MB, free: 5.004 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01784, allocations: 0 / 284.8 MB, free: 5.004 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002857/0.01812, allocations: 115.7 kB / 284.9 MB, free: 4.891 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (opAmp.v_in,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.q_fp1,opAmp.v_source,opAmp.x) * 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 (20): * Single equations (assignments): 19 * 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 {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001452/0.01827, allocations: 131.1 kB / 285 MB, free: 4.75 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004474/0.01872, allocations: 388.5 kB / 285.4 MB, free: 4.352 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.01872, allocations: 0 / 285.4 MB, free: 4.352 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001478/0.01887, allocations: 103.5 kB / 285.5 MB, free: 4.246 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002239/0.01909, allocations: 49.3 kB / 285.5 MB, free: 4.199 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009801/0.02007, allocations: 0.7361 MB / 286.3 MB, free: 3.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.502e-05/0.02014, allocations: 104.3 kB / 286.4 MB, free: 3.309 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.457e-05/0.02022, allocations: 38.91 kB / 286.4 MB, free: 3.27 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.234e-05/0.02027, allocations: 28.48 kB / 286.4 MB, free: 3.242 MB / 266.7 MB Notification: Performance of SimCode: time 7.81e-07/0.02027, allocations: 0 / 286.4 MB, free: 3.242 MB / 266.7 MB Notification: Performance of Templates: time 0.09467/0.1149, allocations: 3.795 MB / 290.2 MB, free: 30.38 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/AmplifierWithOpAmpDetailed/AmplifierWithOpAmpDetailed.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: 2.867502620909363]