Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.001219/0.001219, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.00132/0.00132, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.417/1.417, 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.ResonanceCircuits,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001624/0.001624, allocations: 51.92 kB / 373 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09878/0.1004, allocations: 53.33 MB / 426.3 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.1994/0.2998, allocations: 5.409 MB / 431.8 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002641/0.3025, allocations: 1.525 MB / 433.3 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004481/0.3029, allocations: 36.78 kB / 433.3 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003965/0.3033, allocations: 219.7 kB / 433.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004679/0.3038, allocations: 197.1 kB / 433.7 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006792/0.3044, allocations: 416.5 kB / 434.1 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000883/0.3053, allocations: 1.124 MB / 435.3 MB, free: 6.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004534/0.3058, allocations: 331.9 kB / 435.6 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005068/0.3063, allocations: 421.2 kB / 436 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000421/0.3067, allocations: 432.3 kB / 436.4 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001286/0.3068, allocations: 83.84 kB / 436.5 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002165/0.3071, allocations: 106.7 kB / 436.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.3072, allocations: 213.2 kB / 436.8 MB, free: 6.414 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003355/0.3075, allocations: 0.4972 MB / 437.3 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001273/0.3088, allocations: 1.192 MB / 438.5 MB, free: 5.617 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.3088, allocations: 0 / 438.5 MB, free: 5.617 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3088, allocations: 0 / 438.5 MB, free: 5.617 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.752e-05/0.3088, allocations: 3.938 kB / 438.5 MB, free: 5.613 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001728/0.3106, allocations: 1.342 MB / 439.8 MB, free: 4.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.3106, allocations: 10 kB / 439.9 MB, free: 4.707 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001494/0.3108, allocations: 152.7 kB / 440 MB, free: 4.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003348/0.3111, allocations: 153.3 kB / 440.2 MB, free: 4.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009775/0.3121, allocations: 0.6697 MB / 440.8 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.312e-05/0.3121, allocations: 73.78 kB / 440.9 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/0.3122, allocations: 100.8 kB / 441 MB, free: 4.047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.3137, allocations: 1.03 MB / 442 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.927e-05/0.3137, allocations: 6.312 kB / 442 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.637e-05/0.3138, allocations: 44.69 kB / 442.1 MB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.332e-05/0.3138, allocations: 30.36 kB / 442.1 MB, free: 3.363 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.3149, allocations: 0.5557 MB / 442.7 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00479/0.3197, allocations: 5.499 MB / 448.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006297/0.3203, allocations: 226.2 kB / 448.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003259/0.3207, allocations: 148.5 kB / 448.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001733/0.3208, allocations: 86.67 kB / 448.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.123e-05/0.3209, allocations: 39.31 kB / 448.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 1.914e-06/0.3209, allocations: 0 / 448.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.004217/0.3251, allocations: 1.743 MB / 450.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.283e-05/0.3252, allocations: 86.94 kB / 450.5 MB, free: 13.06 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008354/0.326, allocations: 0.6393 MB / 451.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.497e-05/0.326, allocations: 34.98 kB / 451.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000461/0.3265, allocations: 0.6162 MB / 451.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.3266, allocations: 154.2 kB / 451.9 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001862/0.3268, allocations: 139.2 kB / 452.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002149/0.327, allocations: 387.9 kB / 452.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003428/0.3274, allocations: 151.5 kB / 452.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006218/0.328, allocations: 499 kB / 453.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.329, allocations: 0.7009 MB / 453.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.329, allocations: 3.75 kB / 453.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001281/0.3303, allocations: 0.7183 MB / 454.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.3303, allocations: 12.22 kB / 454.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.705e-05/0.3303, allocations: 12.56 kB / 454.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.818e-05/0.3304, allocations: 16.12 kB / 454.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006429/0.331, allocations: 198.8 kB / 454.7 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.662e-05/0.331, allocations: 23.09 kB / 454.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004055/0.3314, allocations: 40.06 kB / 454.8 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.585e-05/0.3315, allocations: 44.09 kB / 454.8 MB, free: 10.16 MB / 366.1 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.000356/0.3318, allocations: 229.6 kB / 455.1 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.332, allocations: 80.64 kB / 455.1 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001469/0.3321, allocations: 73.98 kB / 455.2 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.3321, allocations: 7.469 kB / 455.2 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.3321, allocations: 0.9688 kB / 455.2 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.3321, allocations: 3.562 kB / 455.2 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002275/0.3344, allocations: 1.318 MB / 456.5 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.3344, allocations: 1.719 kB / 456.5 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004521/0.3349, allocations: 101.9 kB / 456.6 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.966e-06/0.3349, allocations: 12.56 kB / 456.6 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.732e-05/0.3349, allocations: 9.484 kB / 456.7 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.023e-05/0.3349, allocations: 7.438 kB / 456.7 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3349, allocations: 2.75 kB / 456.7 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.336, allocations: 0.7082 MB / 457.4 MB, free: 8.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001389/0.3361, allocations: 146.2 kB / 457.5 MB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.946e-05/0.3362, allocations: 8.781 kB / 457.5 MB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002847/0.3365, allocations: 20.55 kB / 457.5 MB, free: 8.512 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.249e-05/0.3365, allocations: 28.39 kB / 457.6 MB, free: 8.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.351e-05/0.3366, allocations: 18.89 kB / 457.6 MB, free: 8.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005078/0.3371, allocations: 425.7 kB / 458 MB, free: 8.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3371, allocations: 0 / 458 MB, free: 8.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007124/0.3378, allocations: 137.8 kB / 458.1 MB, free: 8.305 MB / 366.1 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.001362/0.3391, allocations: 1.255 MB / 459.4 MB, free: 7.332 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008201/0.34, allocations: 417.9 kB / 459.8 MB, free: 7.199 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.34, allocations: 1.344 kB / 459.8 MB, free: 7.199 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002758/0.3402, allocations: 145.5 kB / 459.9 MB, free: 7.156 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005678/0.3408, allocations: 75.83 kB / 460 MB, free: 7.109 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008697/0.3495, allocations: 6.157 MB / 466.2 MB, free: 2.969 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006458/0.3501, allocations: 1.006 MB / 467.2 MB, free: 2.133 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002867/0.3504, allocations: 96.56 kB / 467.3 MB, free: 2.086 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004649/0.3509, allocations: 392 kB / 467.7 MB, free: 1.746 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3509, allocations: 1.188 kB / 467.7 MB, free: 1.746 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04182/0.3927, allocations: 11.79 MB / 479.5 MB, free: 9.766 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.634/9.027, allocations: 2.922 kB / 479.5 MB, free: 9.766 MB / 382.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 11.814917586976662]