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.001641/0.001641, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001761/0.001761, allocations: 214.1 kB / 24.52 MB, free: 3.941 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.387/1.387, allocations: 230.6 MB / 258.3 MB, free: 7.781 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 47.92 kB / 378.5 MB, free: 2.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2476, allocations: 53.35 MB / 431.9 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006235/0.2538, allocations: 4.776 MB / 436.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002815/0.2566, allocations: 1.465 MB / 438.1 MB, free: 404 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005533/0.2572, allocations: 39.69 kB / 438.2 MB, free: 364 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004907/0.2577, allocations: 213.8 kB / 438.4 MB, free: 148 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005622/0.2582, allocations: 198.1 kB / 438.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008703/0.2591, allocations: 423.3 kB / 439 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001142/0.2602, allocations: 1.122 MB / 440.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005158/0.2608, allocations: 336.9 kB / 440.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005106/0.2613, allocations: 418.2 kB / 440.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004515/0.2617, allocations: 429.6 kB / 441.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001174/0.2618, allocations: 84 kB / 441.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001999/0.262, allocations: 107.9 kB / 441.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001761/0.2622, allocations: 215.1 kB / 441.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003464/0.2626, allocations: 405.7 kB / 442.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0012/0.2638, allocations: 1.202 MB / 443.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.2638, allocations: 4 kB / 443.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2638, allocations: 0 / 443.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.489e-05/0.2638, allocations: 0 / 443.3 MB, free: 11.22 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.001833/0.2656, allocations: 1.264 MB / 444.5 MB, free: 9.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.2657, allocations: 12.03 kB / 444.5 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.405e-05/0.2657, allocations: 26 kB / 444.6 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001502/0.2658, allocations: 152.2 kB / 444.7 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003497/0.2662, allocations: 155.1 kB / 444.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009675/0.2672, allocations: 0.5859 MB / 445.4 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.657e-05/0.2672, allocations: 74 kB / 445.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.2673, allocations: 96 kB / 445.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001702/0.269, allocations: 1.082 MB / 446.7 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.796e-05/0.2691, allocations: 3.938 kB / 446.7 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.28e-05/0.2691, allocations: 44 kB / 446.7 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.936e-05/0.2692, allocations: 32 kB / 446.8 MB, free: 7.496 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.2703, allocations: 0.5578 MB / 447.3 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004912/0.2752, allocations: 5.229 MB / 452.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000574/0.2758, allocations: 224.9 kB / 452.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003207/0.2761, allocations: 153.6 kB / 452.9 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001131/0.2762, allocations: 16.25 kB / 452.9 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.2763, allocations: 34.56 kB / 453 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.455e-06/0.2763, allocations: 0 / 453 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003837/0.2801, allocations: 1.599 MB / 454.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.484e-05/0.2802, allocations: 89.09 kB / 454.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006968/0.2809, allocations: 0.6373 MB / 455.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.2809, allocations: 33.7 kB / 455.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004289/0.2813, allocations: 0.6161 MB / 456 MB, free: 13.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.2814, allocations: 154.8 kB / 456.1 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.2816, allocations: 138.5 kB / 456.2 MB, free: 13.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.2818, allocations: 382.8 kB / 456.6 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002991/0.2821, allocations: 153.9 kB / 456.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005547/0.2827, allocations: 0.4894 MB / 457.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009325/0.2836, allocations: 0.7068 MB / 458 MB, free: 11.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.2836, allocations: 4 kB / 458 MB, free: 11.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00114/0.2847, allocations: 0.7155 MB / 458.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.2848, allocations: 8 kB / 458.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.822e-05/0.2848, allocations: 12 kB / 458.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.002e-05/0.2848, allocations: 19.94 kB / 458.7 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006214/0.2854, allocations: 200.3 kB / 458.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.325e-05/0.2854, allocations: 23.92 kB / 458.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003404/0.2858, allocations: 31.98 kB / 459 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.022e-05/0.2858, allocations: 36 kB / 459 MB, free: 10.5 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.0002905/0.2861, allocations: 229.5 kB / 459.2 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.2862, allocations: 79.48 kB / 459.3 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001171/0.2864, allocations: 78.67 kB / 459.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.2864, allocations: 7.938 kB / 459.4 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.2864, allocations: 0 / 459.4 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.2864, allocations: 7.984 kB / 459.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002101/0.2885, allocations: 1.232 MB / 460.6 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.2885, allocations: 0 / 460.6 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005884/0.2891, allocations: 112 kB / 460.7 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.063e-05/0.2891, allocations: 7.938 kB / 460.7 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.381e-05/0.2891, allocations: 11.98 kB / 460.8 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/0.2891, allocations: 7.984 kB / 460.8 MB, free: 8.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2891, allocations: 0 / 460.8 MB, free: 8.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.2901, allocations: 0.7168 MB / 461.5 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.106e-05/0.2902, allocations: 71.52 kB / 461.6 MB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.957e-05/0.2903, allocations: 8 kB / 461.6 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002878/0.2906, allocations: 19.98 kB / 461.6 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.673e-05/0.2906, allocations: 27.95 kB / 461.6 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.478e-05/0.2907, allocations: 15.98 kB / 461.6 MB, free: 7.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004798/0.2912, allocations: 423 kB / 462 MB, free: 7.359 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2912, allocations: 3.938 kB / 462 MB, free: 7.355 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006039/0.2918, allocations: 151.9 kB / 462.2 MB, free: 7.207 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.001316/0.2931, allocations: 1.249 MB / 463.4 MB, free: 5.918 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007618/0.2938, allocations: 419 kB / 463.8 MB, free: 5.512 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.2938, allocations: 8.125 kB / 463.9 MB, free: 5.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002689/0.2941, allocations: 147 kB / 464 MB, free: 5.363 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005057/0.2946, allocations: 75.3 kB / 464.1 MB, free: 5.289 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007964/0.3026, allocations: 6.157 MB / 470.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004759/0.3031, allocations: 413.4 kB / 470.6 MB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002713/0.3033, allocations: 94.06 kB / 470.7 MB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005051/0.3038, allocations: 395.3 kB / 471.1 MB, free: 13.73 MB / 382.1 MB Notification: Performance of SimCode: time 1.323e-06/0.3038, allocations: 0 / 471.1 MB, free: 13.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03746/0.3413, allocations: 12.32 MB / 483.4 MB, free: 1.664 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.14, allocations: 4.062 kB / 483.4 MB, free: 1.66 MB / 382.1 MB " [Timeout remaining time 648] (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: 15.411876394995488]