Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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.001446/0.001446, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001309/0.001309, allocations: 189.5 kB / 24.49 MB, free: 3.941 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.368/1.368, allocations: 225.7 MB / 253.3 MB, free: 12.82 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.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 51.91 kB / 371.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.2324, allocations: 52.19 MB / 423.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004463/0.2369, allocations: 2.684 MB / 426.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001397/0.2382, allocations: 0.6349 MB / 426.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000262/0.2385, allocations: 11.94 kB / 426.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002329/0.2387, allocations: 55.44 kB / 426.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002781/0.239, allocations: 95.17 kB / 426.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003073/0.2393, allocations: 95.83 kB / 426.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004779/0.2398, allocations: 378.3 kB / 427.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002404/0.24, allocations: 117.8 kB / 427.4 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002517/0.2403, allocations: 139.6 kB / 427.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00025/0.2405, allocations: 163.2 kB / 427.7 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.335e-05/0.2406, allocations: 32 kB / 427.8 MB, free: 9.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.666e-05/0.2407, allocations: 36 kB / 427.8 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.143e-05/0.2408, allocations: 67.77 kB / 427.9 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.2409, allocations: 139.4 kB / 428 MB, free: 9.605 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00045/0.2414, allocations: 390.4 kB / 428.4 MB, free: 9.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.2414, allocations: 0 / 428.4 MB, free: 9.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2414, allocations: 0 / 428.4 MB, free: 9.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.316e-05/0.2414, allocations: 0 / 428.4 MB, free: 9.223 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009925/0.2424, allocations: 0.5365 MB / 428.9 MB, free: 8.656 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.2424, allocations: 8.031 kB / 428.9 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.238e-05/0.2424, allocations: 8.844 kB / 428.9 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.613e-05/0.2425, allocations: 74.66 kB / 429 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.819e-05/0.2426, allocations: 36.7 kB / 429 MB, free: 8.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003597/0.2429, allocations: 213.9 kB / 429.2 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.051e-05/0.243, allocations: 21.03 kB / 429.3 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.086e-05/0.243, allocations: 36.33 kB / 429.3 MB, free: 8.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000583/0.2436, allocations: 333.3 kB / 429.6 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.2436, allocations: 4 kB / 429.6 MB, free: 7.887 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.164e-05/0.2437, allocations: 12 kB / 429.6 MB, free: 7.875 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.2437, allocations: 4 kB / 429.6 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004654/0.2441, allocations: 206.5 kB / 429.8 MB, free: 7.668 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001558/0.2457, allocations: 0.8628 MB / 430.7 MB, free: 6.734 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000333/0.246, allocations: 150.6 kB / 430.9 MB, free: 6.578 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001678/0.2462, allocations: 72.81 kB / 430.9 MB, free: 6.504 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.2462, allocations: 7.984 kB / 430.9 MB, free: 6.496 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.2462, allocations: 34.56 kB / 431 MB, free: 6.453 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.462e-06/0.2462, allocations: 0 / 431 MB, free: 6.453 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005582/0.2468, allocations: 217.7 kB / 431.2 MB, free: 6.234 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/0.2468, allocations: 51.41 kB / 431.2 MB, free: 6.172 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.2471, allocations: 214.9 kB / 431.4 MB, free: 5.953 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.2471, allocations: 25.7 kB / 431.5 MB, free: 5.922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.2472, allocations: 196.4 kB / 431.7 MB, free: 5.727 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.882e-05/0.2473, allocations: 75.42 kB / 431.7 MB, free: 5.652 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.797e-05/0.2474, allocations: 49.7 kB / 431.8 MB, free: 5.598 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.2475, allocations: 326.8 kB / 432.1 MB, free: 5.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000165/0.2477, allocations: 59.95 kB / 432.2 MB, free: 5.211 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002042/0.2479, allocations: 114 kB / 432.3 MB, free: 5.078 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003612/0.2482, allocations: 201.6 kB / 432.5 MB, free: 4.859 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.2482, allocations: 0 / 432.5 MB, free: 4.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004668/0.2487, allocations: 237.3 kB / 432.7 MB, free: 4.621 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.2487, allocations: 7.438 kB / 432.7 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.2487, allocations: 4 kB / 432.7 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.2487, allocations: 0 / 432.7 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002768/0.249, allocations: 68.02 kB / 432.8 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.249, allocations: 4 kB / 432.8 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001489/0.2492, allocations: 23.84 kB / 432.8 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/0.2492, allocations: 15.98 kB / 432.8 MB, free: 4.504 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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.0001419/0.2493, allocations: 145.7 kB / 433 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.757e-05/0.2494, allocations: 23.86 kB / 433 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004112/0.2498, allocations: 191.3 kB / 433.2 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.2498, allocations: 4 kB / 433.2 MB, free: 4.125 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.2498, allocations: 7.938 kB / 433.2 MB, free: 4.117 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.2498, allocations: 0 / 433.2 MB, free: 4.117 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003377/0.2502, allocations: 256.6 kB / 433.4 MB, free: 3.824 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.2502, allocations: 3.984 kB / 433.4 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002803/0.2504, allocations: 55.91 kB / 433.5 MB, free: 3.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.2504, allocations: 4 kB / 433.5 MB, free: 3.762 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.2505, allocations: 4 kB / 433.5 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.2505, allocations: 0 / 433.5 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.2505, allocations: 4 kB / 433.5 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005834/0.2511, allocations: 353.7 kB / 433.8 MB, free: 3.395 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.116e-05/0.2511, allocations: 23.91 kB / 433.9 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.155e-05/0.2511, allocations: 3.984 kB / 433.9 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.2513, allocations: 16 kB / 433.9 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.658e-05/0.2513, allocations: 11.97 kB / 433.9 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.2514, allocations: 8 kB / 433.9 MB, free: 3.332 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001372/0.2515, allocations: 144.6 kB / 434.1 MB, free: 3.191 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2515, allocations: 4 kB / 434.1 MB, free: 3.188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003224/0.2518, allocations: 79.78 kB / 434.1 MB, free: 3.109 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.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 (19): * Single equations (assignments): 19 * 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.0009201/0.2527, allocations: 0.8839 MB / 435 MB, free: 2.195 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003893/0.2531, allocations: 155.9 kB / 435.2 MB, free: 2.047 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2531, allocations: 4 kB / 435.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.2533, allocations: 75.89 kB / 435.2 MB, free: 1.969 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.2536, allocations: 19.98 kB / 435.3 MB, free: 1.949 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003589/0.2572, allocations: 2.721 MB / 438 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001573/0.2574, allocations: 155.1 kB / 438.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.801e-05/0.2574, allocations: 29.92 kB / 438.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.2576, allocations: 95.41 kB / 438.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of SimCode: time 8.71e-07/0.2576, allocations: 0 / 438.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02806/0.2856, allocations: 4.882 MB / 443.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.29, allocations: 0 / 443.1 MB, free: 10.11 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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.107968757976778]