Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.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.0009592/0.0009592, allocations: 76.08 kB / 20.67 MB, free: 3.891 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.0009044/0.0009044, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 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.903/0.903, allocations: 173.3 MB / 200.4 MB, free: 9.438 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.264e-06/2.264e-06, allocations: 0 / 318.5 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.735e-05/2.962e-05, allocations: 2.281 kB / 318.5 MB, free: 6.305 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit): time 0.0072/0.00723, allocations: 6.837 MB / 325.3 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003153/0.01038, allocations: 1.851 MB / 327.2 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005986/0.01098, allocations: 31.81 kB / 327.2 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003982/0.01138, allocations: 237.7 kB / 327.4 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007055/0.01208, allocations: 483.8 kB / 327.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007707/0.01286, allocations: 0.4993 MB / 328.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001407/0.01426, allocations: 1.867 MB / 330.3 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005845/0.01485, allocations: 412.3 kB / 330.7 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001019/0.01587, allocations: 0.9863 MB / 331.7 MB, free: 9.051 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005258/0.01639, allocations: 0.5296 MB / 332.2 MB, free: 8.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001569/0.01655, allocations: 180 kB / 332.4 MB, free: 8.344 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001393/0.01669, allocations: 180 kB / 332.5 MB, free: 8.168 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001664/0.01685, allocations: 362.7 kB / 332.9 MB, free: 7.812 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003608/0.01722, allocations: 0.5377 MB / 333.4 MB, free: 7.273 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001343/0.01856, allocations: 2.095 MB / 335.5 MB, free: 5.172 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.01856, allocations: 0 / 335.5 MB, free: 5.172 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.01857, allocations: 0 / 335.5 MB, free: 5.172 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.189e-05/0.01861, allocations: 0 / 335.5 MB, free: 5.172 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.002187/0.02079, allocations: 1.736 MB / 337.3 MB, free: 3.398 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.02084, allocations: 8.922 kB / 337.3 MB, free: 3.391 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001644/0.021, allocations: 186 kB / 337.5 MB, free: 3.199 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002183/0.02122, allocations: 164 kB / 337.6 MB, free: 3.039 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008546/0.02208, allocations: 0.6886 MB / 338.3 MB, free: 2.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.86e-05/0.02213, allocations: 94.83 kB / 338.4 MB, free: 2.227 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/0.02224, allocations: 132.1 kB / 338.5 MB, free: 2.098 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.02382, allocations: 1.635 MB / 340.2 MB, free: 340 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.02384, allocations: 4 kB / 340.2 MB, free: 336 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.107e-05/0.02391, allocations: 52 kB / 340.2 MB, free: 284 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.632e-05/0.02393, allocations: 28 kB / 340.2 MB, free: 256 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001514/0.02544, allocations: 1.122 MB / 341.4 MB, free: 15.12 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004555/0.03, allocations: 4.4 MB / 345.8 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001389/0.03139, allocations: 0.9758 MB / 346.7 MB, free: 9.523 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006645/0.03205, allocations: 494.4 kB / 347.2 MB, free: 9.039 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.031e-05/0.03209, allocations: 12.59 kB / 347.2 MB, free: 9.027 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.03212, allocations: 47.22 kB / 347.3 MB, free: 8.973 MB / 314.7 MB Notification: Performance of pre-optimization done (n=79): time 2.735e-06/0.03213, allocations: 3.984 kB / 347.3 MB, free: 8.969 MB / 314.7 MB Notification: Performance of matching and sorting (n=79): time 0.004461/0.03659, allocations: 2.473 MB / 349.8 MB, free: 6.469 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.788e-05/0.03665, allocations: 85.77 kB / 349.8 MB, free: 6.367 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007852/0.03743, allocations: 0.8252 MB / 350.7 MB, free: 5.527 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.155e-05/0.03747, allocations: 41.7 kB / 350.7 MB, free: 5.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003045/0.03778, allocations: 0.6053 MB / 351.3 MB, free: 4.867 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001527/0.03793, allocations: 289.5 kB / 351.6 MB, free: 4.582 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001881/0.03812, allocations: 174.6 kB / 351.8 MB, free: 4.406 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.03823, allocations: 341.9 kB / 352.1 MB, free: 4.066 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005439/0.03877, allocations: 365.8 kB / 352.5 MB, free: 3.707 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006954/0.03947, allocations: 0.5855 MB / 353 MB, free: 3.031 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001217/0.04068, allocations: 0.9559 MB / 354 MB, free: 1.988 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.04069, allocations: 0 / 354 MB, free: 1.988 MB / 314.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001849/0.04254, allocations: 1.358 MB / 355.4 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.04256, allocations: 12.25 kB / 355.4 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/0.04258, allocations: 12 kB / 355.4 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005069/0.04308, allocations: 222.5 kB / 355.6 MB, free: 372 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001762/0.04485, allocations: 0.835 MB / 356.4 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007948/0.05279, allocations: 10.15 MB / 366.6 MB, free: 4.695 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004914/0.05329, allocations: 155.1 kB / 366.7 MB, free: 4.543 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.235e-05/0.05333, allocations: 40 kB / 366.8 MB, free: 4.504 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (111): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,7), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003501/0.05368, allocations: 274.2 kB / 367 MB, free: 4.227 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.837e-05/0.05378, allocations: 99.39 kB / 367.1 MB, free: 4.129 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001065/0.05388, allocations: 108.9 kB / 367.2 MB, free: 4.02 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.05389, allocations: 8 kB / 367.3 MB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.0539, allocations: 3.938 kB / 367.3 MB, free: 4.008 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.0539, allocations: 7.984 kB / 367.3 MB, free: 4 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002862/0.05677, allocations: 2.262 MB / 369.5 MB, free: 1.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.05677, allocations: 0 / 369.5 MB, free: 1.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002827/0.05705, allocations: 123.9 kB / 369.7 MB, free: 1.539 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006691/0.05772, allocations: 428.8 kB / 370.1 MB, free: 1.102 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.429e-05/0.05776, allocations: 23.94 kB / 370.1 MB, free: 1.078 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007048/0.0648, allocations: 10.21 MB / 380.3 MB, free: 6.184 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.06481, allocations: 3.984 kB / 380.3 MB, free: 6.18 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002722/0.06753, allocations: 1.933 MB / 382.2 MB, free: 4.207 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.06764, allocations: 119.1 kB / 382.4 MB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.906e-05/0.0677, allocations: 15.94 kB / 382.4 MB, free: 4.074 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003804/0.06808, allocations: 107.9 kB / 382.5 MB, free: 3.969 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.06818, allocations: 64.48 kB / 382.5 MB, free: 3.906 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.017e-05/0.06821, allocations: 27.98 kB / 382.6 MB, free: 3.879 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000463/0.06868, allocations: 0.5459 MB / 383.1 MB, free: 3.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-08/0.06868, allocations: 0 / 383.1 MB, free: 3.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008817/0.06956, allocations: 363.2 kB / 383.5 MB, free: 2.984 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (PIA.c.v,firstOrder1A.c.v,firstOrder2A.c.v,PIB.x,firstOrder1B.y,firstOrder2B.y) * 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 (58): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(1,5), (1,5), (1,1), (1,7), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002768/0.07233, allocations: 2.505 MB / 386 MB, free: 436 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003004/0.07533, allocations: 1.944 MB / 387.9 MB, free: 14.44 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.07533, allocations: 8 kB / 387.9 MB, free: 14.43 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.07645, allocations: 1.137 MB / 389.1 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000634/0.07709, allocations: 201.9 kB / 389.3 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01022/0.0873, allocations: 9.255 MB / 398.5 MB, free: 3.453 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.08766, allocations: 496.2 kB / 399 MB, free: 2.93 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002809/0.08794, allocations: 99.5 kB / 399.1 MB, free: 2.828 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003465/0.08829, allocations: 436.4 kB / 399.5 MB, free: 2.402 MB / 362.7 MB Notification: Performance of SimCode: time 6.31e-07/0.08829, allocations: 0 / 399.5 MB, free: 2.402 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04186/0.1302, allocations: 25.33 MB / 424.8 MB, free: 9.406 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.592/8.722, allocations: 7.578 kB / 424.9 MB, free: 9.402 MB / 394.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/ControlCircuit/ControlCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.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: 10.491554360836744]