Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001395/0.001395, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001804/0.001804, allocations: 214.6 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.562/1.562, allocations: 230.5 MB / 257.4 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002104/0.002104, allocations: 63.91 kB / 377.8 MB, free: 2.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2627, allocations: 53.42 MB / 431.2 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit): time 0.01345/0.2761, allocations: 6.967 MB / 438.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005563/0.2817, allocations: 1.78 MB / 439.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001407/0.2831, allocations: 35.75 kB / 440 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008873/0.284, allocations: 245.6 kB / 440.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001677/0.2857, allocations: 476.1 kB / 440.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.2867, allocations: 427.5 kB / 441.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002825/0.2895, allocations: 1.782 MB / 442.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001075/0.2906, allocations: 412.5 kB / 443.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001277/0.2919, allocations: 0.6539 MB / 443.9 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001395/0.2933, allocations: 0.6334 MB / 444.6 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004457/0.2937, allocations: 180 kB / 444.7 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006068/0.2943, allocations: 184 kB / 444.9 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003513/0.2947, allocations: 362.7 kB / 445.3 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008279/0.2955, allocations: 0.6533 MB / 445.9 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002586/0.2981, allocations: 2.125 MB / 448 MB, free: 5.484 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.2981, allocations: 0 / 448 MB, free: 5.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.36e-06/0.2981, allocations: 3.984 kB / 448 MB, free: 5.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.835e-05/0.2982, allocations: 0 / 448 MB, free: 5.48 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: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.003357/0.3015, allocations: 1.697 MB / 449.7 MB, free: 3.746 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.108e-05/0.3016, allocations: 11.98 kB / 449.8 MB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002617/0.3018, allocations: 194.4 kB / 449.9 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002973/0.3021, allocations: 168 kB / 450.1 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001421/0.3036, allocations: 0.7379 MB / 450.8 MB, free: 2.605 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.46e-05/0.3036, allocations: 94.58 kB / 450.9 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002033/0.3038, allocations: 128 kB / 451.1 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002475/0.3063, allocations: 1.712 MB / 452.8 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.946e-05/0.3063, allocations: 0 / 452.8 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001135/0.3065, allocations: 55.94 kB / 452.8 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.074e-05/0.3065, allocations: 36 kB / 452.9 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00198/0.3085, allocations: 1.009 MB / 453.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007624/0.3161, allocations: 3.975 MB / 457.9 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.3176, allocations: 0.8371 MB / 458.7 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000819/0.3184, allocations: 436 kB / 459.1 MB, free: 9.992 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.478e-05/0.3185, allocations: 13 kB / 459.1 MB, free: 9.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.173e-05/0.3185, allocations: 43.56 kB / 459.2 MB, free: 9.926 MB / 366.1 MB Notification: Performance of pre-optimization done (n=94): time 3.146e-06/0.3185, allocations: 0 / 459.2 MB, free: 9.926 MB / 366.1 MB Notification: Performance of matching and sorting (n=94): time 0.005196/0.3237, allocations: 1.726 MB / 460.9 MB, free: 8.176 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.51e-05/0.3238, allocations: 94.11 kB / 461 MB, free: 8.066 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00117/0.3249, allocations: 0.8214 MB / 461.8 MB, free: 7.238 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.999e-05/0.325, allocations: 45.7 kB / 461.9 MB, free: 7.188 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004553/0.3255, allocations: 0.594 MB / 462.4 MB, free: 6.586 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002844/0.3258, allocations: 337.1 kB / 462.8 MB, free: 6.254 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002711/0.326, allocations: 182.9 kB / 463 MB, free: 6.066 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002033/0.3262, allocations: 349.9 kB / 463.3 MB, free: 5.719 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005964/0.3268, allocations: 302.5 kB / 463.6 MB, free: 5.426 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007945/0.3276, allocations: 0.4985 MB / 464.1 MB, free: 4.848 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/0.329, allocations: 0.8204 MB / 464.9 MB, free: 3.957 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.329, allocations: 0 / 464.9 MB, free: 3.957 MB / 366.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002871/0.3319, allocations: 1.314 MB / 466.2 MB, free: 2.617 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.3319, allocations: 8 kB / 466.2 MB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.3319, allocations: 4.156 kB / 466.2 MB, free: 2.605 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001423/0.3333, allocations: 397.1 kB / 466.6 MB, free: 2.199 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007566/0.3341, allocations: 199.7 kB / 466.8 MB, free: 2.004 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01238/0.3464, allocations: 10.15 MB / 477 MB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/0.3476, allocations: 123.2 kB / 477.1 MB, free: 7.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00018/0.3478, allocations: 36 kB / 477.1 MB, free: 6.988 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 10 (firstOrder2A.opAmp.satNeg,firstOrder2A.opAmp.satPos,addA.opAmp.satNeg,addA.opAmp.satPos,firstOrder1A.opAmp.satNeg,firstOrder1A.opAmp.satPos,PIA.opAmp.satNeg,PIA.opAmp.satPos,feedbackA.opAmp.satNeg,feedbackA.opAmp.satPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 103 * 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,6), (1,6), (1,2), (1,8), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0008378/0.3486, allocations: 301.9 kB / 477.4 MB, free: 6.684 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004091/0.349, allocations: 115.2 kB / 477.5 MB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003209/0.3494, allocations: 114.1 kB / 477.6 MB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/0.3494, allocations: 8 kB / 477.6 MB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.701e-05/0.3494, allocations: 4 kB / 477.7 MB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.3494, allocations: 3.984 kB / 477.7 MB, free: 6.434 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004809/0.3542, allocations: 2.06 MB / 479.7 MB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.3542, allocations: 0 / 479.7 MB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005657/0.3548, allocations: 127.8 kB / 479.8 MB, free: 4.172 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001445/0.3562, allocations: 392.8 kB / 480.2 MB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.204e-05/0.3563, allocations: 19.94 kB / 480.2 MB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01209/0.3684, allocations: 10.17 MB / 490.4 MB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3684, allocations: 0 / 490.4 MB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003586/0.372, allocations: 1.635 MB / 492.1 MB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003492/0.3723, allocations: 119.2 kB / 492.2 MB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001762/0.3725, allocations: 16 kB / 492.2 MB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007836/0.3733, allocations: 91.92 kB / 492.3 MB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002407/0.3735, allocations: 88.78 kB / 492.4 MB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.349e-05/0.3736, allocations: 31.98 kB / 492.4 MB, free: 6.844 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008798/0.3745, allocations: 0.5459 MB / 492.9 MB, free: 6.305 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3745, allocations: 0 / 492.9 MB, free: 6.305 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001586/0.3761, allocations: 395.2 kB / 493.3 MB, free: 5.918 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: 10 (feedbackA.opAmp.satPos,feedbackA.opAmp.satNeg,PIA.opAmp.satPos,PIA.opAmp.satNeg,firstOrder1A.opAmp.satPos,firstOrder1A.opAmp.satNeg,addA.opAmp.satPos,addA.opAmp.satNeg,firstOrder2A.opAmp.satPos,firstOrder2A.opAmp.satNeg) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 62 * 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,6), (1,6), (1,2), (1,8), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003771/0.3798, allocations: 2.219 MB / 495.5 MB, free: 3.648 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002914/0.3827, allocations: 1.524 MB / 497.1 MB, free: 2.051 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/0.3828, allocations: 0 / 497.1 MB, free: 2.051 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00187/0.3846, allocations: 1.162 MB / 498.2 MB, free: 0.8086 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001931/0.3866, allocations: 233.5 kB / 498.5 MB, free: 0.5977 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01814/0.4047, allocations: 9.073 MB / 0.4956 GB, free: 7.203 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007688/0.4055, allocations: 0.5138 MB / 0.4961 GB, free: 6.652 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005298/0.406, allocations: 107.9 kB / 0.4962 GB, free: 6.543 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006668/0.4067, allocations: 459.3 kB / 0.4967 GB, free: 6.094 MB / 414.1 MB Notification: Performance of SimCode: time 1.533e-06/0.4067, allocations: 4 kB / 0.4967 GB, free: 6.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0968/0.5035, allocations: 27.36 MB / 0.5234 GB, free: 11.05 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.78/14.29, allocations: 8 kB / 0.5234 GB, free: 11.04 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 17.07058912469074]