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.001412/0.001412, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001355/0.001355, allocations: 190.8 kB / 23.71 MB, free: 4.406 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.416/1.416, allocations: 225.7 MB / 252.5 MB, free: 12.79 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 48.06 kB / 370.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2855, allocations: 52.19 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004339/0.2899, allocations: 2.69 MB / 425.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001257/0.2911, allocations: 0.6366 MB / 425.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001424/0.2913, allocations: 7.938 kB / 425.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002212/0.2915, allocations: 63.42 kB / 426 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001737/0.2917, allocations: 91.19 kB / 426.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002799/0.292, allocations: 95.83 kB / 426.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004368/0.2924, allocations: 382.3 kB / 426.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002551/0.2927, allocations: 109.8 kB / 426.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002149/0.2929, allocations: 139.6 kB / 426.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001934/0.2931, allocations: 135.2 kB / 426.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.503e-05/0.2931, allocations: 35.98 kB / 426.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.765e-05/0.2932, allocations: 36 kB / 427 MB, free: 9.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.706e-05/0.2932, allocations: 71.77 kB / 427 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001482/0.2934, allocations: 143.4 kB / 427.2 MB, free: 9.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004279/0.2938, allocations: 386.3 kB / 427.6 MB, free: 9.391 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2938, allocations: 0 / 427.6 MB, free: 9.391 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2938, allocations: 0 / 427.6 MB, free: 9.391 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.064e-06/0.2938, allocations: 0 / 427.6 MB, free: 9.391 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.0009659/0.2948, allocations: 0.5404 MB / 428.1 MB, free: 8.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.2948, allocations: 8.031 kB / 428.1 MB, free: 8.812 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.965e-05/0.2949, allocations: 70.72 kB / 428.2 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.474e-05/0.295, allocations: 36.7 kB / 428.2 MB, free: 8.699 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003867/0.2954, allocations: 202 kB / 428.4 MB, free: 8.477 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/0.2954, allocations: 25.03 kB / 428.4 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.05e-05/0.2955, allocations: 36.27 kB / 428.5 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005536/0.296, allocations: 329.6 kB / 428.8 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.296, allocations: 4 kB / 428.8 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.862e-05/0.2961, allocations: 12 kB / 428.8 MB, free: 8.062 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.2961, allocations: 8 kB / 428.8 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004556/0.2965, allocations: 202.5 kB / 429 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.2981, allocations: 0.8629 MB / 429.9 MB, free: 6.922 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003318/0.2984, allocations: 154.5 kB / 430 MB, free: 6.762 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001662/0.2986, allocations: 72.91 kB / 430.1 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.2986, allocations: 0 / 430.1 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.346e-05/0.2986, allocations: 42.56 kB / 430.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.022e-06/0.2986, allocations: 0 / 430.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005524/0.2992, allocations: 212.8 kB / 430.4 MB, free: 6.426 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.386e-05/0.2993, allocations: 55.41 kB / 430.4 MB, free: 6.359 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002369/0.2995, allocations: 214.9 kB / 430.6 MB, free: 6.141 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.2995, allocations: 29.7 kB / 430.6 MB, free: 6.105 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.2997, allocations: 192.4 kB / 430.8 MB, free: 5.914 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.633e-05/0.2997, allocations: 67.42 kB / 430.9 MB, free: 5.848 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.802e-05/0.2998, allocations: 57.66 kB / 431 MB, free: 5.785 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.3, allocations: 334.8 kB / 431.3 MB, free: 5.449 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.3001, allocations: 63.91 kB / 431.3 MB, free: 5.387 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.3003, allocations: 113.9 kB / 431.5 MB, free: 5.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003673/0.3007, allocations: 193.8 kB / 431.6 MB, free: 5.043 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.3007, allocations: 3.938 kB / 431.7 MB, free: 5.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004571/0.3012, allocations: 237.3 kB / 431.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.3012, allocations: 4 kB / 431.9 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/0.3012, allocations: 4 kB / 431.9 MB, free: 4.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.3012, allocations: 0 / 431.9 MB, free: 4.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.3015, allocations: 68.02 kB / 432 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.3015, allocations: 8 kB / 432 MB, free: 4.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001364/0.3016, allocations: 23.81 kB / 432 MB, free: 4.695 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.898e-05/0.3016, allocations: 12 kB / 432 MB, free: 4.684 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.0001596/0.3018, allocations: 141.7 kB / 432.1 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.56e-05/0.3018, allocations: 23.86 kB / 432.2 MB, free: 4.512 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004157/0.3023, allocations: 195.3 kB / 432.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.3023, allocations: 0 / 432.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3023, allocations: 4 kB / 432.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3023, allocations: 0 / 432.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003422/0.3026, allocations: 276.5 kB / 432.6 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3026, allocations: 0 / 432.6 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002548/0.3029, allocations: 47.97 kB / 432.7 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.3029, allocations: 0 / 432.7 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.3029, allocations: 8 kB / 432.7 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.3029, allocations: 7.875 kB / 432.7 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3029, allocations: 0 / 432.7 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006043/0.3035, allocations: 349.8 kB / 433 MB, free: 3.574 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.716e-05/0.3035, allocations: 23.95 kB / 433.1 MB, free: 3.551 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.117e-05/0.3036, allocations: 4 kB / 433.1 MB, free: 3.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001602/0.3037, allocations: 11.98 kB / 433.1 MB, free: 3.535 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.436e-05/0.3038, allocations: 23.97 kB / 433.1 MB, free: 3.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.3038, allocations: 4 kB / 433.1 MB, free: 3.508 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001528/0.3039, allocations: 148.6 kB / 433.2 MB, free: 3.363 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3039, allocations: 0 / 433.2 MB, free: 3.363 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003093/0.3042, allocations: 83.78 kB / 433.3 MB, free: 3.281 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.0009619/0.3052, allocations: 0.8801 MB / 434.2 MB, free: 2.371 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003901/0.3056, allocations: 151.6 kB / 434.4 MB, free: 2.227 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3056, allocations: 0 / 434.4 MB, free: 2.227 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.3058, allocations: 76.09 kB / 434.4 MB, free: 2.152 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000312/0.3061, allocations: 31.92 kB / 434.5 MB, free: 2.121 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003637/0.3097, allocations: 2.713 MB / 437.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001748/0.3099, allocations: 159.1 kB / 437.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.094e-05/0.31, allocations: 21.94 kB / 437.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.3101, allocations: 95.41 kB / 437.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3101, allocations: 3.938 kB / 437.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03197/0.3421, allocations: 5.175 MB / 442.6 MB, free: 9.992 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.44, allocations: 7.922 kB / 442.6 MB, free: 9.984 MB / 350.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.csv","/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] "Error: Could not read variable sineVoltage.phi in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv. Warning: Get data of variable sineVoltage.phi from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.21223459392786]