Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.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.001368/0.001368, allocations: 124.5 kB / 17.79 MB, free: 5.246 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.001508/0.001508, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.427/1.427, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001586, allocations: 55.92 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.104, allocations: 53.34 MB / 426.4 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit): time 0.2039/0.3079, allocations: 7.887 MB / 434.3 MB, free: 7.277 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003481/0.3113, allocations: 1.906 MB / 436.2 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.3125, allocations: 31.41 kB / 436.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004895/0.313, allocations: 242 kB / 436.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009604/0.3139, allocations: 453.7 kB / 436.9 MB, free: 6.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008845/0.3148, allocations: 0.4966 MB / 437.4 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001877/0.3167, allocations: 1.799 MB / 439.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006127/0.3173, allocations: 442.6 kB / 439.6 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008112/0.3181, allocations: 0.656 MB / 440.3 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007375/0.3188, allocations: 0.7142 MB / 441 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002214/0.3191, allocations: 178.7 kB / 441.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000264/0.3193, allocations: 178.7 kB / 441.3 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000217/0.3195, allocations: 357.2 kB / 441.7 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000598/0.3201, allocations: 0.7718 MB / 442.4 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00217/0.3223, allocations: 2.059 MB / 444.5 MB, free: 2.598 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.3223, allocations: 4 kB / 444.5 MB, free: 2.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3223, allocations: 3.938 kB / 444.5 MB, free: 2.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.119e-05/0.3224, allocations: 0 / 444.5 MB, free: 2.59 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: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.003335/0.3257, allocations: 1.815 MB / 446.3 MB, free: 1.488 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.3257, allocations: 13.53 kB / 446.3 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001983/0.3259, allocations: 186.2 kB / 446.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002339/0.3262, allocations: 163.3 kB / 446.7 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.3272, allocations: 0.771 MB / 447.5 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.573e-05/0.3273, allocations: 91.89 kB / 447.5 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001566/0.3274, allocations: 119.5 kB / 447.7 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00231/0.3297, allocations: 1.318 MB / 449 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.511e-05/0.3298, allocations: 1.125 kB / 449 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/0.3299, allocations: 51.94 kB / 449 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.372e-05/0.3299, allocations: 30.56 kB / 449.1 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002609/0.3325, allocations: 1.122 MB / 450.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008489/0.341, allocations: 4.962 MB / 455.1 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002498/0.3435, allocations: 1.145 MB / 456.3 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001135/0.3446, allocations: 485.9 kB / 456.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.779e-05/0.3447, allocations: 8.562 kB / 456.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.471e-05/0.3447, allocations: 49.59 kB / 456.8 MB, free: 11.51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.565e-06/0.3447, allocations: 3.938 kB / 456.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=79): time 0.009103/0.3538, allocations: 2.932 MB / 459.8 MB, free: 9.883 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.201e-05/0.3539, allocations: 85.77 kB / 459.8 MB, free: 9.789 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001221/0.3551, allocations: 0.8022 MB / 460.6 MB, free: 9.336 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.736e-05/0.3552, allocations: 42.23 kB / 460.7 MB, free: 9.293 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005078/0.3557, allocations: 0.6098 MB / 461.3 MB, free: 8.746 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002756/0.356, allocations: 295.6 kB / 461.6 MB, free: 8.488 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002721/0.3563, allocations: 169.8 kB / 461.7 MB, free: 8.379 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.3564, allocations: 351.5 kB / 462.1 MB, free: 8.039 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009044/0.3573, allocations: 366.4 kB / 462.4 MB, free: 7.879 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00108/0.3584, allocations: 0.5804 MB / 463 MB, free: 7.441 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001981/0.3604, allocations: 0.9517 MB / 464 MB, free: 6.816 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/0.3604, allocations: 5.312 kB / 464 MB, free: 6.812 MB / 366.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003385/0.3638, allocations: 1.349 MB / 465.3 MB, free: 6.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.3638, allocations: 7.594 kB / 465.3 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.147e-05/0.3638, allocations: 12.14 kB / 465.4 MB, free: 6.156 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008582/0.3647, allocations: 223.3 kB / 465.6 MB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003854/0.3685, allocations: 0.8369 MB / 466.4 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01474/0.3833, allocations: 10.85 MB / 477.3 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.3845, allocations: 146.2 kB / 477.4 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.834e-05/0.3845, allocations: 38.25 kB / 477.4 MB, free: 11.69 MB / 382.1 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.0005288/0.3851, allocations: 268.7 kB / 477.7 MB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001943/0.3853, allocations: 108.8 kB / 477.8 MB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002271/0.3855, allocations: 108.2 kB / 477.9 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.3855, allocations: 12.23 kB / 477.9 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/0.3855, allocations: 1.375 kB / 477.9 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.3855, allocations: 9.359 kB / 477.9 MB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005425/0.3909, allocations: 2.447 MB / 480.4 MB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-06/0.3909, allocations: 0 / 480.4 MB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005858/0.3915, allocations: 123.8 kB / 480.5 MB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001421/0.393, allocations: 424.3 kB / 480.9 MB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.144e-05/0.393, allocations: 15.98 kB / 480.9 MB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01384/0.4068, allocations: 10.9 MB / 491.8 MB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.4068, allocations: 7.969 kB / 491.8 MB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005269/0.4121, allocations: 1.933 MB / 493.8 MB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004563/0.4126, allocations: 192.3 kB / 494 MB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/0.4127, allocations: 16 kB / 494 MB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008071/0.4135, allocations: 103.8 kB / 494.1 MB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.4137, allocations: 64.42 kB / 494.1 MB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.263e-05/0.4137, allocations: 27.98 kB / 494.2 MB, free: 10.46 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007965/0.4145, allocations: 0.5459 MB / 494.7 MB, free: 9.922 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4145, allocations: 0 / 494.7 MB, free: 9.922 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001405/0.4159, allocations: 359.3 kB / 495.1 MB, free: 9.57 MB / 398.1 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.00541/0.4213, allocations: 2.512 MB / 497.6 MB, free: 7 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006582/0.4279, allocations: 1.959 MB / 499.5 MB, free: 5.004 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.241e-06/0.4279, allocations: 3.938 kB / 499.5 MB, free: 5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001917/0.4298, allocations: 1.133 MB / 0.4889 GB, free: 3.789 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00148/0.4313, allocations: 213.7 kB / 0.4891 GB, free: 3.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01763/0.449, allocations: 9.268 MB / 0.4982 GB, free: 9.996 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007639/0.4497, allocations: 1.074 MB / 0.4992 GB, free: 8.898 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004545/0.4502, allocations: 103.5 kB / 0.4993 GB, free: 8.793 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005349/0.4507, allocations: 427.3 kB / 0.4997 GB, free: 8.375 MB / 414.1 MB Notification: Performance of SimCode: time 1.252e-06/0.4507, allocations: 0 / 0.4997 GB, free: 8.375 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07483/0.5255, allocations: 24.17 MB / 0.5234 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.74/14.26, allocations: 7.5 kB / 0.5234 GB, free: 0.4922 MB / 430.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/ControlCircuit/ControlCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 16.71219386998564]