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.001237/0.001237, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.00141/0.00141, allocations: 211.5 kB / 23.73 MB, free: 4.523 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.405/1.405, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001498/0.001498, allocations: 47.92 kB / 377.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2481, allocations: 53.36 MB / 431.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006851/0.255, allocations: 4.78 MB / 435.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003167/0.2582, allocations: 1.477 MB / 437.4 MB, free: 344 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005159/0.2587, allocations: 39.69 kB / 437.4 MB, free: 304 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000506/0.2592, allocations: 217.8 kB / 437.6 MB, free: 84 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005871/0.2598, allocations: 194.1 kB / 437.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000873/0.2606, allocations: 423.3 kB / 438.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001283/0.2619, allocations: 1.115 MB / 439.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005487/0.2625, allocations: 334.6 kB / 439.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000609/0.2631, allocations: 422.2 kB / 440.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004902/0.2636, allocations: 433.6 kB / 440.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001141/0.2637, allocations: 84 kB / 440.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002095/0.2639, allocations: 107.9 kB / 440.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001767/0.2641, allocations: 219.1 kB / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004258/0.2645, allocations: 401.7 kB / 441.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001257/0.2658, allocations: 1.197 MB / 442.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.2658, allocations: 0 / 442.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2658, allocations: 4 kB / 442.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.822e-05/0.2658, allocations: 0 / 442.5 MB, free: 11.16 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.0019/0.2677, allocations: 1.27 MB / 443.8 MB, free: 9.863 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.2677, allocations: 12.03 kB / 443.8 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001678/0.2679, allocations: 152.2 kB / 443.9 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003556/0.2683, allocations: 151.1 kB / 444.1 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001085/0.2693, allocations: 0.5782 MB / 444.6 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.012e-05/0.2694, allocations: 77.94 kB / 444.7 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.2695, allocations: 100 kB / 444.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00174/0.2713, allocations: 1.078 MB / 445.9 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.591e-05/0.2713, allocations: 11.89 kB / 445.9 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.036e-05/0.2714, allocations: 44 kB / 445.9 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.394e-05/0.2714, allocations: 24 kB / 446 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001152/0.2726, allocations: 0.5539 MB / 446.5 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005151/0.2777, allocations: 5.237 MB / 451.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005777/0.2783, allocations: 220.9 kB / 452 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003214/0.2786, allocations: 145.7 kB / 452.1 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001174/0.2787, allocations: 16.27 kB / 452.1 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.2788, allocations: 34.56 kB / 452.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.575e-06/0.2788, allocations: 3.938 kB / 452.2 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.00399/0.2828, allocations: 1.597 MB / 453.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.507e-05/0.2828, allocations: 93.05 kB / 453.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007614/0.2836, allocations: 0.6606 MB / 454.5 MB, free: 14.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.335e-05/0.2836, allocations: 29.7 kB / 454.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004323/0.2841, allocations: 0.6239 MB / 455.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.2842, allocations: 154.8 kB / 455.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/0.2844, allocations: 134.6 kB / 455.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.2846, allocations: 382.8 kB / 455.8 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003049/0.2849, allocations: 153.9 kB / 456 MB, free: 13.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005572/0.2854, allocations: 497.1 kB / 456.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009426/0.2864, allocations: 0.7025 MB / 457.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.513e-06/0.2864, allocations: 4 kB / 457.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001198/0.2876, allocations: 0.7154 MB / 457.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.2876, allocations: 11.94 kB / 457.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.953e-05/0.2876, allocations: 12 kB / 457.9 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.609e-05/0.2876, allocations: 16.69 kB / 457.9 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006519/0.2883, allocations: 195.7 kB / 458.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.527e-05/0.2883, allocations: 27.92 kB / 458.1 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003611/0.2887, allocations: 31.98 kB / 458.2 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.444e-05/0.2887, allocations: 40 kB / 458.2 MB, free: 10.46 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.0003145/0.2891, allocations: 229.5 kB / 458.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.2892, allocations: 83.48 kB / 458.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001252/0.2893, allocations: 74.67 kB / 458.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.686e-05/0.2893, allocations: 11.94 kB / 458.6 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.2893, allocations: 7.984 kB / 458.6 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.2893, allocations: 3.984 kB / 458.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002095/0.2914, allocations: 1.233 MB / 459.9 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.2914, allocations: 8.094 kB / 459.9 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004919/0.2919, allocations: 103.9 kB / 460 MB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/0.2919, allocations: 7.938 kB / 460 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.788e-05/0.292, allocations: 11.98 kB / 460 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.13e-06/0.292, allocations: 4 kB / 460 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.292, allocations: 0 / 460 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.293, allocations: 0.7129 MB / 460.7 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/0.2931, allocations: 67.52 kB / 460.8 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.188e-05/0.2932, allocations: 15.94 kB / 460.8 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003049/0.2935, allocations: 23.98 kB / 460.8 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.21e-05/0.2935, allocations: 23.95 kB / 460.8 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.87e-05/0.2936, allocations: 19.98 kB / 460.8 MB, free: 7.719 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004901/0.2941, allocations: 419 kB / 461.3 MB, free: 7.316 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2941, allocations: 4 kB / 461.3 MB, free: 7.312 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006771/0.2947, allocations: 143.9 kB / 461.4 MB, free: 7.172 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.001407/0.2961, allocations: 1.25 MB / 462.7 MB, free: 5.879 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008322/0.297, allocations: 418.8 kB / 463.1 MB, free: 5.473 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.297, allocations: 4 kB / 463.1 MB, free: 5.469 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002865/0.2973, allocations: 150.5 kB / 463.2 MB, free: 5.324 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005633/0.2978, allocations: 70.44 kB / 463.3 MB, free: 5.254 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009108/0.3069, allocations: 6.158 MB / 469.4 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005017/0.3074, allocations: 417.4 kB / 469.8 MB, free: 14.17 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003184/0.3078, allocations: 94.05 kB / 469.9 MB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005278/0.3083, allocations: 399.3 kB / 470.3 MB, free: 13.68 MB / 382.1 MB Notification: Performance of SimCode: time 1.562e-06/0.3083, allocations: 0 / 470.3 MB, free: 13.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04632/0.3546, allocations: 12.67 MB / 483 MB, free: 1.266 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.34, allocations: 3.188 kB / 483 MB, free: 1.266 MB / 382.1 MB " [Timeout remaining time 649] (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: 14.172298721998231]