Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.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.001278/0.001278, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001417/0.001417, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.414/1.414, allocations: 230.6 MB / 258.3 MB, free: 7.773 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.ParallelResonance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001676, allocations: 43.94 kB / 378.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2712, allocations: 53.36 MB / 431.9 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.004204/0.2754, allocations: 2.714 MB / 434.6 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001267/0.2767, allocations: 0.6738 MB / 435.3 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001505/0.2768, allocations: 4 kB / 435.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001904/0.277, allocations: 67.36 kB / 435.3 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001867/0.2772, allocations: 87.19 kB / 435.4 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002579/0.2775, allocations: 91.89 kB / 435.5 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004117/0.2779, allocations: 382.8 kB / 435.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002618/0.2782, allocations: 124.8 kB / 436 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002795/0.2784, allocations: 155.5 kB / 436.1 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.2786, allocations: 159.3 kB / 436.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.993e-05/0.2787, allocations: 32 kB / 436.3 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.848e-05/0.2788, allocations: 32 kB / 436.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.99e-05/0.2788, allocations: 75.77 kB / 436.4 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001512/0.279, allocations: 143.4 kB / 436.6 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004385/0.2794, allocations: 394.2 kB / 437 MB, free: 1.543 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.492e-05/0.2794, allocations: 3.984 kB / 437 MB, free: 1.539 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2794, allocations: 0 / 437 MB, free: 1.539 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.2794, allocations: 0 / 437 MB, free: 1.539 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.0009845/0.2804, allocations: 0.5444 MB / 437.5 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.2805, allocations: 12.02 kB / 437.5 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.685e-05/0.2805, allocations: 8.844 kB / 437.5 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.219e-05/0.2806, allocations: 66.73 kB / 437.6 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.396e-05/0.2806, allocations: 44.69 kB / 437.6 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003557/0.281, allocations: 206.7 kB / 437.8 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.804e-05/0.281, allocations: 21.03 kB / 437.9 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.945e-05/0.2811, allocations: 32.38 kB / 437.9 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005864/0.2817, allocations: 341.4 kB / 438.2 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.2817, allocations: 0 / 438.2 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.2817, allocations: 12 kB / 438.2 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.2817, allocations: 8 kB / 438.2 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004816/0.2822, allocations: 226.4 kB / 438.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.2838, allocations: 0.902 MB / 439.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003415/0.2841, allocations: 162.4 kB / 439.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002856/0.2844, allocations: 131.4 kB / 439.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.2844, allocations: 3.938 kB / 439.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.2844, allocations: 38.56 kB / 439.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.503e-06/0.2844, allocations: 0 / 439.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005888/0.285, allocations: 225.7 kB / 439.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/0.2851, allocations: 55.41 kB / 440 MB, free: 14.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002361/0.2853, allocations: 215.1 kB / 440.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.607e-05/0.2853, allocations: 33.7 kB / 440.2 MB, free: 14.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.2855, allocations: 200.4 kB / 440.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.912e-05/0.2856, allocations: 71.38 kB / 440.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.064e-05/0.2856, allocations: 49.98 kB / 440.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.2858, allocations: 334.8 kB / 440.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.286, allocations: 68.52 kB / 440.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002204/0.2862, allocations: 139.3 kB / 441.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003903/0.2866, allocations: 237.1 kB / 441.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.2866, allocations: 0 / 441.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005151/0.2871, allocations: 273.2 kB / 441.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.2871, allocations: 4 kB / 441.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.2871, allocations: 7.938 kB / 441.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.2872, allocations: 4 kB / 441.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002953/0.2874, allocations: 75.83 kB / 441.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.2875, allocations: 4 kB / 441.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001585/0.2876, allocations: 36.02 kB / 441.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.491e-05/0.2876, allocations: 16 kB / 441.7 MB, free: 12.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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.0001408/0.2878, allocations: 141.7 kB / 441.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.841e-05/0.2878, allocations: 23.86 kB / 441.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000422/0.2882, allocations: 199.3 kB / 442.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.2883, allocations: 0 / 442.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.2883, allocations: 4 kB / 442.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.2883, allocations: 3.984 kB / 442.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008575/0.2891, allocations: 0.5524 MB / 442.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.2891, allocations: 4 kB / 442.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/0.2894, allocations: 47.97 kB / 442.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.2894, allocations: 4 kB / 442.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.2894, allocations: 7.938 kB / 442.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.2894, allocations: 4 kB / 442.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2894, allocations: 0 / 442.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006076/0.29, allocations: 380.4 kB / 443.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.767e-05/0.2901, allocations: 23.8 kB / 443.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.306e-05/0.2901, allocations: 8 kB / 443.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.2903, allocations: 19.98 kB / 443.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.225e-05/0.2903, allocations: 15.91 kB / 443.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.2904, allocations: 7.938 kB / 443.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001475/0.2905, allocations: 160.6 kB / 443.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2905, allocations: 4 kB / 443.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003343/0.2908, allocations: 75.78 kB / 443.4 MB, free: 10.75 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.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 (21): * Single equations (assignments): 21 * 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.0009068/0.2917, allocations: 0.9096 MB / 444.3 MB, free: 9.805 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003967/0.2921, allocations: 172.1 kB / 444.4 MB, free: 9.637 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.2921, allocations: 0 / 444.4 MB, free: 9.637 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000164/0.2923, allocations: 75.84 kB / 444.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000367/0.2927, allocations: 40.78 kB / 444.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003735/0.2964, allocations: 2.819 MB / 447.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001734/0.2966, allocations: 163.5 kB / 447.5 MB, free: 6.379 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.2967, allocations: 21.94 kB / 447.6 MB, free: 6.355 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.2968, allocations: 95.41 kB / 447.7 MB, free: 6.262 MB / 350.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2968, allocations: 0 / 447.7 MB, free: 6.262 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02893/0.3258, allocations: 5.018 MB / 452.7 MB, free: 1.438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.46, allocations: 2.75 kB / 452.7 MB, free: 1.438 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ParallelResonance_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ParallelResonance.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ParallelResonance.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.325986534939148]