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.00123/0.00123, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001379/0.001379, allocations: 201.2 kB / 24.52 MB, free: 4.156 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.391/1.391, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.001428/0.001428, allocations: 43.92 kB / 378.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2474, allocations: 53.36 MB / 431.9 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006686/0.2541, allocations: 5.448 MB / 437.4 MB, free: 1.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002947/0.2571, allocations: 1.527 MB / 438.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005175/0.2576, allocations: 35.69 kB / 439 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004679/0.2581, allocations: 221.8 kB / 439.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005381/0.2586, allocations: 198 kB / 439.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007837/0.2594, allocations: 423.2 kB / 439.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001168/0.2606, allocations: 1.13 MB / 440.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000513/0.2611, allocations: 336.9 kB / 441.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005064/0.2616, allocations: 410.3 kB / 441.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004622/0.262, allocations: 437.5 kB / 442.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.2622, allocations: 84 kB / 442.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001859/0.2623, allocations: 104 kB / 442.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001668/0.2625, allocations: 219 kB / 442.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004028/0.2629, allocations: 0.4893 MB / 443 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001232/0.2641, allocations: 1.19 MB / 444.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2641, allocations: 0 / 444.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.2641, allocations: 8 kB / 444.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.376e-05/0.2642, allocations: 0 / 444.2 MB, free: 10.57 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.00187/0.266, allocations: 1.271 MB / 445.4 MB, free: 9.266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.2661, allocations: 16.03 kB / 445.4 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.568e-05/0.2661, allocations: 26 kB / 445.5 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001566/0.2663, allocations: 152.2 kB / 445.6 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003464/0.2666, allocations: 151.1 kB / 445.8 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.2677, allocations: 0.586 MB / 446.3 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.761e-05/0.2677, allocations: 70 kB / 446.4 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/0.2678, allocations: 100 kB / 446.5 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/0.2694, allocations: 1.028 MB / 447.5 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.95e-05/0.2694, allocations: 11.94 kB / 447.6 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.288e-05/0.2695, allocations: 40 kB / 447.6 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.471e-05/0.2695, allocations: 24 kB / 447.6 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001115/0.2707, allocations: 0.5656 MB / 448.2 MB, free: 6.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005072/0.2757, allocations: 5.405 MB / 453.6 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005416/0.2763, allocations: 220.9 kB / 453.8 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003017/0.2766, allocations: 149.9 kB / 453.9 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.59e-05/0.2767, allocations: 15.92 kB / 454 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.322e-05/0.2767, allocations: 42.5 kB / 454 MB, free: 208 kB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.684e-06/0.2767, allocations: 3.938 kB / 454 MB, free: 204 kB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003732/0.2804, allocations: 1.584 MB / 455.6 MB, free: 14.56 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.385e-05/0.2805, allocations: 81.11 kB / 455.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007129/0.2812, allocations: 0.6412 MB / 456.3 MB, free: 13.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.2812, allocations: 37.7 kB / 456.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004271/0.2817, allocations: 0.62 MB / 457 MB, free: 13.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.2818, allocations: 150.8 kB / 457.1 MB, free: 12.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/0.2819, allocations: 138.5 kB / 457.3 MB, free: 12.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.2821, allocations: 382.8 kB / 457.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003055/0.2824, allocations: 153.9 kB / 457.8 MB, free: 12.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005646/0.283, allocations: 0.4971 MB / 458.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009185/0.2839, allocations: 0.6921 MB / 459 MB, free: 10.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.603e-06/0.2839, allocations: 7.938 kB / 459 MB, free: 10.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001165/0.2851, allocations: 0.7181 MB / 459.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.2851, allocations: 12.88 kB / 459.7 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.2851, allocations: 12 kB / 459.7 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.894e-05/0.2852, allocations: 19.94 kB / 459.7 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006214/0.2858, allocations: 195.7 kB / 459.9 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.64e-05/0.2858, allocations: 23.92 kB / 459.9 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003472/0.2862, allocations: 35.98 kB / 460 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.951e-05/0.2862, allocations: 40 kB / 460 MB, free: 9.738 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.0002995/0.2865, allocations: 225.5 kB / 460.2 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.2866, allocations: 83.48 kB / 460.3 MB, free: 9.426 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.2867, allocations: 82.59 kB / 460.4 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.2867, allocations: 7.938 kB / 460.4 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.2868, allocations: 0 / 460.4 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.888e-06/0.2868, allocations: 7.984 kB / 460.4 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002052/0.2888, allocations: 1.284 MB / 461.7 MB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.2888, allocations: 4 kB / 461.7 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004743/0.2893, allocations: 104 kB / 461.8 MB, free: 7.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.2893, allocations: 11.94 kB / 461.8 MB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.784e-05/0.2893, allocations: 11.98 kB / 461.8 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.2893, allocations: 4 kB / 461.8 MB, free: 7.848 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.2893, allocations: 3.938 kB / 461.8 MB, free: 7.844 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.2903, allocations: 0.7091 MB / 462.5 MB, free: 7.102 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.2904, allocations: 63.48 kB / 462.6 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.218e-05/0.2905, allocations: 16.03 kB / 462.6 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002896/0.2908, allocations: 23.98 kB / 462.7 MB, free: 7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.357e-05/0.2909, allocations: 27.89 kB / 462.7 MB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.157e-05/0.2909, allocations: 19.98 kB / 462.7 MB, free: 6.953 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004732/0.2914, allocations: 423 kB / 463.1 MB, free: 6.543 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2914, allocations: 0 / 463.1 MB, free: 6.543 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006288/0.292, allocations: 139.9 kB / 463.2 MB, free: 6.406 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.001321/0.2933, allocations: 1.254 MB / 464.5 MB, free: 5.109 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008622/0.2942, allocations: 414.5 kB / 464.9 MB, free: 4.707 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.2942, allocations: 4 kB / 464.9 MB, free: 4.703 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002781/0.2945, allocations: 143.2 kB / 465 MB, free: 4.566 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005244/0.295, allocations: 83.17 kB / 465.1 MB, free: 4.484 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008404/0.3034, allocations: 6.149 MB / 471.3 MB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000636/0.304, allocations: 1.004 MB / 472.3 MB, free: 12.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002703/0.3043, allocations: 94.05 kB / 472.4 MB, free: 12.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004734/0.3048, allocations: 391.3 kB / 472.8 MB, free: 12.34 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3048, allocations: 0 / 472.8 MB, free: 12.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0381/0.3429, allocations: 12.38 MB / 485.1 MB, free: 140 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.65, allocations: 10.41 kB / 485.1 MB, free: 136 kB / 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: 14.940218034025747]