Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.0007941/0.0007941, allocations: 76.08 kB / 20.67 MB, free: 3.895 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.0007988/0.0007988, allocations: 153.1 kB / 23.93 MB, free: 0.6328 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.9032/0.9032, allocations: 173.4 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.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 3.938 kB / 318.5 MB, free: 6.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.21e-05/2.365e-05, allocations: 2.281 kB / 318.5 MB, free: 6.195 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.004137/0.00416, allocations: 4.739 MB / 323.2 MB, free: 1.43 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002092/0.006252, allocations: 1.41 MB / 324.6 MB, free: 16 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004002/0.006653, allocations: 31.8 kB / 324.6 MB, free: 15.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003556/0.007008, allocations: 221.7 kB / 324.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000492/0.0075, allocations: 213.8 kB / 325.1 MB, free: 15.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007469/0.008247, allocations: 399.2 kB / 325.5 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009257/0.009173, allocations: 1.149 MB / 326.6 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003862/0.009559, allocations: 316.8 kB / 326.9 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005185/0.01008, allocations: 0.5845 MB / 327.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002443/0.01032, allocations: 290.9 kB / 327.8 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.301e-05/0.01039, allocations: 84 kB / 327.9 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.01052, allocations: 96 kB / 328 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.01063, allocations: 219 kB / 328.2 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001934/0.01082, allocations: 319 kB / 328.5 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008534/0.01168, allocations: 1.16 MB / 329.6 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.01168, allocations: 0 / 329.6 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.01168, allocations: 0 / 329.6 MB, free: 10.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.575e-05/0.01171, allocations: 4 kB / 329.7 MB, free: 10.94 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001339/0.01305, allocations: 1.248 MB / 330.9 MB, free: 9.652 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.01309, allocations: 16.91 kB / 330.9 MB, free: 9.637 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001109/0.0132, allocations: 156.2 kB / 331.1 MB, free: 9.477 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.01332, allocations: 135.2 kB / 331.2 MB, free: 9.344 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006968/0.01402, allocations: 0.5627 MB / 331.8 MB, free: 8.754 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.178e-05/0.01406, allocations: 74 kB / 331.8 MB, free: 8.684 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.589e-05/0.01414, allocations: 96 kB / 331.9 MB, free: 8.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/0.01522, allocations: 1.089 MB / 333 MB, free: 7.363 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.505e-05/0.01525, allocations: 7.891 kB / 333 MB, free: 7.355 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.442e-05/0.0153, allocations: 44 kB / 333.1 MB, free: 7.312 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.658e-05/0.01532, allocations: 28 kB / 333.1 MB, free: 7.285 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007418/0.01606, allocations: 0.5539 MB / 333.7 MB, free: 6.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003636/0.0197, allocations: 5.228 MB / 338.9 MB, free: 1.215 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003916/0.02009, allocations: 221 kB / 339.1 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002105/0.0203, allocations: 145.6 kB / 339.2 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.975e-05/0.0204, allocations: 8 kB / 339.2 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.02043, allocations: 46.5 kB / 339.3 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 2.185e-06/0.02043, allocations: 0 / 339.3 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.002719/0.02315, allocations: 1.602 MB / 340.9 MB, free: 15.11 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.02319, allocations: 81.11 kB / 341 MB, free: 15.01 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005392/0.02373, allocations: 0.6566 MB / 341.6 MB, free: 14.34 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/0.02375, allocations: 37.7 kB / 341.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002798/0.02403, allocations: 0.6084 MB / 342.3 MB, free: 13.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.289e-05/0.02412, allocations: 150.7 kB / 342.4 MB, free: 13.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.02423, allocations: 138.5 kB / 342.6 MB, free: 13.39 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.02436, allocations: 390.7 kB / 342.9 MB, free: 13 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001929/0.02455, allocations: 153.9 kB / 343.1 MB, free: 12.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003415/0.02489, allocations: 497.4 kB / 343.6 MB, free: 12.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006258/0.02552, allocations: 0.6993 MB / 344.3 MB, free: 11.35 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.02552, allocations: 4 kB / 344.3 MB, free: 11.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0007587/0.02628, allocations: 0.7122 MB / 345 MB, free: 10.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.0263, allocations: 12 kB / 345 MB, free: 10.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.02631, allocations: 12 kB / 345 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.653e-05/0.02634, allocations: 23.98 kB / 345 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003576/0.02669, allocations: 195.6 kB / 345.2 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.656e-05/0.02671, allocations: 23.92 kB / 345.3 MB, free: 10.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002016/0.02691, allocations: 35.92 kB / 345.3 MB, free: 10.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.064e-05/0.02694, allocations: 40 kB / 345.3 MB, free: 10.29 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002212/0.02716, allocations: 229.5 kB / 345.5 MB, free: 10.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.679e-05/0.02723, allocations: 79.48 kB / 345.6 MB, free: 9.98 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.789e-05/0.02731, allocations: 82.62 kB / 345.7 MB, free: 9.898 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.02731, allocations: 4 kB / 345.7 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.02732, allocations: 0 / 345.7 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.02733, allocations: 0 / 345.7 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001291/0.02862, allocations: 1.23 MB / 346.9 MB, free: 8.598 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.02862, allocations: 3.938 kB / 346.9 MB, free: 8.594 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002427/0.02886, allocations: 103.9 kB / 347 MB, free: 8.492 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.02887, allocations: 4 kB / 347.1 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.056e-05/0.02889, allocations: 12 kB / 347.1 MB, free: 8.477 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.02889, allocations: 8.156 kB / 347.1 MB, free: 8.469 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.0289, allocations: 3.938 kB / 347.1 MB, free: 8.465 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006388/0.02953, allocations: 0.7012 MB / 347.8 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.41e-05/0.0296, allocations: 71.42 kB / 347.8 MB, free: 7.66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.721e-05/0.02964, allocations: 15.94 kB / 347.9 MB, free: 7.645 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.02979, allocations: 28.02 kB / 347.9 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.2e-05/0.02985, allocations: 27.95 kB / 347.9 MB, free: 7.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.02987, allocations: 16 kB / 347.9 MB, free: 7.574 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003115/0.03018, allocations: 423 kB / 348.3 MB, free: 7.164 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03018, allocations: 4 kB / 348.3 MB, free: 7.16 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000438/0.03062, allocations: 136 kB / 348.5 MB, free: 7.027 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * 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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008012/0.03142, allocations: 1.25 MB / 349.7 MB, free: 5.734 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004797/0.0319, allocations: 426.8 kB / 350.1 MB, free: 5.32 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.0319, allocations: 1.75 kB / 350.1 MB, free: 5.32 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001612/0.03206, allocations: 143.8 kB / 350.3 MB, free: 5.18 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003846/0.03245, allocations: 77.95 kB / 350.4 MB, free: 5.105 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005439/0.03789, allocations: 6.007 MB / 356.4 MB, free: 14.61 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.03817, allocations: 421.3 kB / 356.8 MB, free: 14.16 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001858/0.03835, allocations: 90.02 kB / 356.9 MB, free: 14.07 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003114/0.03867, allocations: 392.4 kB / 357.3 MB, free: 13.69 MB / 330.7 MB Notification: Performance of SimCode: time 1.102e-06/0.03867, allocations: 4 kB / 357.3 MB, free: 13.69 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02599/0.06466, allocations: 12.5 MB / 369.8 MB, free: 1.406 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.165/7.23, allocations: 9.984 kB / 369.8 MB, free: 1.402 MB / 330.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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: 9.21053107175976]