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.001283/0.001283, allocations: 108.6 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.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.0014/0.0014, allocations: 192.8 kB / 24.5 MB, free: 4.02 MB / 14.72 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 1.366/1.366, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 47.92 kB / 371.3 MB, free: 9.812 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2721, allocations: 52.18 MB / 423.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006684/0.2788, allocations: 5.427 MB / 428.9 MB, free: 9.129 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002737/0.2815, allocations: 1.442 MB / 430.3 MB, free: 7.684 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003885/0.2819, allocations: 39.69 kB / 430.3 MB, free: 7.645 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004636/0.2823, allocations: 217.8 kB / 430.6 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004902/0.2828, allocations: 198 kB / 430.7 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007188/0.2836, allocations: 403.2 kB / 431.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001203/0.2848, allocations: 1.122 MB / 432.3 MB, free: 5.711 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005321/0.2853, allocations: 332.9 kB / 432.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005023/0.2858, allocations: 422.3 kB / 433 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004746/0.2863, allocations: 429.5 kB / 433.4 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001189/0.2864, allocations: 84 kB / 433.5 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001793/0.2866, allocations: 96 kB / 433.6 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001909/0.2868, allocations: 215.1 kB / 433.8 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004263/0.2872, allocations: 0.4893 MB / 434.3 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001228/0.2884, allocations: 1.19 MB / 435.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2884, allocations: 0 / 435.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2884, allocations: 3.938 kB / 435.5 MB, free: 2.449 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.371e-05/0.2884, allocations: 4 kB / 435.5 MB, free: 2.445 MB / 334.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.001836/0.2903, allocations: 1.264 MB / 436.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.2903, allocations: 8.031 kB / 436.8 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.524e-05/0.2903, allocations: 30 kB / 436.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001903/0.2905, allocations: 152.2 kB / 436.9 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002066/0.2907, allocations: 135.2 kB / 437.1 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.2918, allocations: 0.5665 MB / 437.6 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.368e-05/0.2919, allocations: 78 kB / 437.7 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001232/0.292, allocations: 96 kB / 437.8 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001665/0.2937, allocations: 1.031 MB / 438.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.21e-05/0.2937, allocations: 11.94 kB / 438.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.374e-05/0.2938, allocations: 44 kB / 438.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.423e-05/0.2938, allocations: 28 kB / 438.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/0.2949, allocations: 0.5461 MB / 439.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005261/0.3002, allocations: 5.424 MB / 444.9 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005978/0.3008, allocations: 232.9 kB / 445.1 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003198/0.3011, allocations: 145.6 kB / 445.3 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001082/0.3012, allocations: 8 kB / 445.3 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.587e-05/0.3012, allocations: 38.55 kB / 445.3 MB, free: 8.113 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.984e-06/0.3012, allocations: 0 / 445.3 MB, free: 8.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.004015/0.3053, allocations: 1.594 MB / 446.9 MB, free: 6.465 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.198e-05/0.3053, allocations: 85.05 kB / 447 MB, free: 6.363 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007634/0.3061, allocations: 0.6334 MB / 447.6 MB, free: 5.723 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.326e-05/0.3061, allocations: 29.7 kB / 447.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004703/0.3066, allocations: 0.62 MB / 448.3 MB, free: 5.059 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.3067, allocations: 154.7 kB / 448.4 MB, free: 4.906 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001763/0.3069, allocations: 138.6 kB / 448.6 MB, free: 4.766 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.3071, allocations: 382.8 kB / 448.9 MB, free: 4.383 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003089/0.3074, allocations: 153.9 kB / 449.1 MB, free: 4.234 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006019/0.308, allocations: 0.4893 MB / 449.6 MB, free: 3.586 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.309, allocations: 0.6882 MB / 450.3 MB, free: 2.734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.235e-06/0.309, allocations: 8 kB / 450.3 MB, free: 2.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001308/0.3103, allocations: 0.7195 MB / 451 MB, free: 2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.3104, allocations: 11.28 kB / 451 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.3104, allocations: 12 kB / 451 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.067e-05/0.3104, allocations: 19.94 kB / 451 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006481/0.3111, allocations: 200.2 kB / 451.2 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.136e-05/0.3111, allocations: 23.92 kB / 451.2 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003709/0.3115, allocations: 35.98 kB / 451.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.097e-05/0.3115, allocations: 36 kB / 451.3 MB, free: 1.672 MB / 350.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.0003299/0.3118, allocations: 229.5 kB / 451.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.312, allocations: 83.48 kB / 451.6 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001344/0.3121, allocations: 78.62 kB / 451.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.3121, allocations: 7.938 kB / 451.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.3121, allocations: 4 kB / 451.7 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.3121, allocations: 7.984 kB / 451.7 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00222/0.3143, allocations: 1.273 MB / 453 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.3144, allocations: 4 kB / 453 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004703/0.3148, allocations: 103.9 kB / 453.1 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/0.3148, allocations: 3.938 kB / 453.1 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.348e-05/0.3149, allocations: 15.98 kB / 453.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.3149, allocations: 4.094 kB / 453.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.3149, allocations: 8 kB / 453.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.3159, allocations: 0.7012 MB / 453.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.3161, allocations: 71.52 kB / 453.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.297e-05/0.3161, allocations: 8 kB / 453.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002933/0.3164, allocations: 23.98 kB / 453.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.373e-05/0.3165, allocations: 31.95 kB / 454 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-05/0.3165, allocations: 11.98 kB / 454 MB, free: 14.9 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005257/0.317, allocations: 423 kB / 454.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.317, allocations: 0 / 454.4 MB, free: 14.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006643/0.3177, allocations: 139.9 kB / 454.5 MB, free: 14.36 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.001457/0.3192, allocations: 1.262 MB / 455.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008846/0.3201, allocations: 420.4 kB / 456.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3201, allocations: 0 / 456.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002908/0.3203, allocations: 143.8 kB / 456.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005656/0.3209, allocations: 75.55 kB / 456.4 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009406/0.3303, allocations: 6.138 MB / 462.5 MB, free: 5.801 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008149/0.3311, allocations: 0.9961 MB / 463.5 MB, free: 4.773 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002877/0.3314, allocations: 98 kB / 463.6 MB, free: 4.676 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004939/0.3319, allocations: 391.3 kB / 464 MB, free: 4.293 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3319, allocations: 0 / 464 MB, free: 4.293 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03957/0.3715, allocations: 12.31 MB / 476.3 MB, free: 8.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.82, allocations: 10.98 kB / 476.3 MB, free: 8.152 MB / 382.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/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: 15.070570398005657]