Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001753/0.001753, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002454/0.002454, allocations: 211.9 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.555/1.555, allocations: 230.5 MB / 257.4 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002118/0.002118, allocations: 67.88 kB / 377.7 MB, free: 2.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2714, allocations: 53.4 MB / 431.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004404/0.2758, allocations: 2.711 MB / 433.9 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00154/0.2773, allocations: 0.6794 MB / 434.5 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002721/0.2776, allocations: 11.94 kB / 434.5 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002321/0.2778, allocations: 55.42 kB / 434.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002693/0.2781, allocations: 95.19 kB / 434.7 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003055/0.2784, allocations: 87.83 kB / 434.8 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004847/0.2789, allocations: 370.5 kB / 435.1 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002627/0.2792, allocations: 113.7 kB / 435.3 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003358/0.2795, allocations: 147.5 kB / 435.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002432/0.2797, allocations: 135.3 kB / 435.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.187e-05/0.2798, allocations: 35.98 kB / 435.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.49e-05/0.2799, allocations: 36 kB / 435.6 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.885e-05/0.2799, allocations: 71.75 kB / 435.7 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001546/0.2801, allocations: 139.4 kB / 435.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004458/0.2805, allocations: 382.4 kB / 436.2 MB, free: 1.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2805, allocations: 3.938 kB / 436.2 MB, free: 1.406 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2805, allocations: 0 / 436.2 MB, free: 1.406 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.2806, allocations: 0 / 436.2 MB, free: 1.406 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.001025/0.2816, allocations: 0.5365 MB / 436.7 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.2816, allocations: 11.98 kB / 436.7 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.857e-05/0.2817, allocations: 74.66 kB / 436.8 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.31e-05/0.2818, allocations: 44.64 kB / 436.8 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004813/0.2823, allocations: 202.7 kB / 437 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.2823, allocations: 25.03 kB / 437.1 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.192e-05/0.2824, allocations: 28.38 kB / 437.1 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006154/0.283, allocations: 329.6 kB / 437.4 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.283, allocations: 4 kB / 437.4 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.447e-05/0.283, allocations: 16 kB / 437.4 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.2831, allocations: 7.984 kB / 437.4 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005063/0.2836, allocations: 202.5 kB / 437.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/0.2852, allocations: 0.859 MB / 438.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003667/0.2855, allocations: 161.7 kB / 438.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/0.2857, allocations: 68.83 kB / 438.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.2857, allocations: 0 / 438.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/0.2858, allocations: 42.56 kB / 438.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.162e-06/0.2858, allocations: 0 / 438.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006049/0.2864, allocations: 219.8 kB / 439 MB, free: 14.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.2864, allocations: 51.41 kB / 439 MB, free: 14.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002347/0.2867, allocations: 214.7 kB / 439.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.628e-05/0.2867, allocations: 29.7 kB / 439.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.2868, allocations: 204.3 kB / 439.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.963e-05/0.2869, allocations: 63.44 kB / 439.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.239e-05/0.287, allocations: 49.7 kB / 439.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.2872, allocations: 330.8 kB / 439.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.2873, allocations: 59.97 kB / 440 MB, free: 13.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002049/0.2875, allocations: 126 kB / 440.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003565/0.2879, allocations: 197.7 kB / 440.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.2879, allocations: 3.938 kB / 440.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004614/0.2884, allocations: 237.3 kB / 440.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.2884, allocations: 7.984 kB / 440.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.2884, allocations: 7.938 kB / 440.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.2884, allocations: 0 / 440.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002724/0.2887, allocations: 64.03 kB / 440.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.2887, allocations: 8 kB / 440.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000154/0.2888, allocations: 31.77 kB / 440.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.649e-05/0.2889, allocations: 8 kB / 440.6 MB, free: 12.68 MB / 350.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.0001572/0.289, allocations: 142.4 kB / 440.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.69e-05/0.2891, allocations: 19.91 kB / 440.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004543/0.2895, allocations: 194 kB / 441 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.2895, allocations: 0 / 441 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.2895, allocations: 8 kB / 441 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2895, allocations: 0 / 441 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003931/0.2899, allocations: 272.5 kB / 441.3 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.2899, allocations: 0 / 441.3 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002671/0.2902, allocations: 51.97 kB / 441.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.2902, allocations: 7.938 kB / 441.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.2902, allocations: 0 / 441.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.2902, allocations: 0 / 441.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.2902, allocations: 3.984 kB / 441.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006292/0.2909, allocations: 351.2 kB / 441.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.857e-05/0.2909, allocations: 27.84 kB / 441.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.209e-05/0.2909, allocations: 4.062 kB / 441.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.2911, allocations: 19.98 kB / 441.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.217e-05/0.2912, allocations: 7.984 kB / 441.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/0.2912, allocations: 7.984 kB / 441.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001349/0.2913, allocations: 148.6 kB / 441.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2913, allocations: 0 / 441.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003229/0.2916, allocations: 79.78 kB / 442 MB, free: 11.29 MB / 350.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.0008634/0.2925, allocations: 0.8866 MB / 442.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003734/0.2929, allocations: 155.8 kB / 443 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2929, allocations: 256 / 443 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001547/0.293, allocations: 71.89 kB / 443.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.2934, allocations: 40.12 kB / 443.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003513/0.2969, allocations: 2.715 MB / 445.8 MB, free: 7.289 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000156/0.297, allocations: 159.1 kB / 446 MB, free: 7.113 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.804e-05/0.2971, allocations: 17.95 kB / 446 MB, free: 7.094 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.2973, allocations: 99.39 kB / 446.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2973, allocations: 0 / 446.1 MB, free: 6.996 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03378/0.331, allocations: 5.182 MB / 451.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.15, allocations: 7.438 kB / 451.3 MB, free: 1.945 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sineVoltage.phi in file Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv. Warning: Get data of variable sineVoltage.phi from file Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.10583903407678]