Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 112.7 kB / 17.07 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 195 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001247, allocations: 47.91 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.2995, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance): time 0.00602/0.3056, allocations: 3.694 MB / 403.9 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002687/0.3083, allocations: 1.425 MB / 405.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004199/0.3088, allocations: 15.94 kB / 405.4 MB, free: 3.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002054/0.3109, allocations: 0.7506 MB / 406.1 MB, free: 2.895 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001425/0.3123, allocations: 0.5351 MB / 406.7 MB, free: 2.359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009326/0.3133, allocations: 433.1 kB / 407.1 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000647/0.3139, allocations: 458 kB / 407.5 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007045/0.3146, allocations: 384.8 kB / 407.9 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004116/0.3151, allocations: 211.2 kB / 408.1 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004302/0.3155, allocations: 274.9 kB / 408.4 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000123/0.3156, allocations: 44 kB / 408.4 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005197/0.3162, allocations: 195.9 kB / 408.6 MB, free: 408 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.3163, allocations: 107.6 kB / 408.7 MB, free: 300 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002888/0.3166, allocations: 234.8 kB / 408.9 MB, free: 64 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001041/0.3177, allocations: 0.681 MB / 409.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.3177, allocations: 7.984 kB / 409.6 MB, free: 15.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3177, allocations: 3.938 kB / 409.6 MB, free: 15.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.402e-05/0.3177, allocations: 0 / 409.6 MB, free: 15.37 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: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.002493/0.3202, allocations: 0.9083 MB / 410.5 MB, free: 14.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.3203, allocations: 11.89 kB / 410.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001988/0.3205, allocations: 100 kB / 410.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003533/0.324, allocations: 0.4923 MB / 411.1 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005677/0.3246, allocations: 309.7 kB / 411.4 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.545e-05/0.3246, allocations: 37.69 kB / 411.5 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.3248, allocations: 52.38 kB / 411.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.3259, allocations: 0.5218 MB / 412.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.154e-05/0.3259, allocations: 11.98 kB / 412.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.278e-05/0.326, allocations: 20 kB / 412.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.326, allocations: 12 kB / 412.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.3271, allocations: 0.5673 MB / 412.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003135/0.3302, allocations: 1.87 MB / 414.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002157/0.3324, allocations: 2.176 MB / 416.7 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003559/0.3328, allocations: 214.1 kB / 416.9 MB, free: 7.473 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.007e-05/0.3329, allocations: 89.53 kB / 417 MB, free: 7.367 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.618e-05/0.3329, allocations: 39 kB / 417 MB, free: 7.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 2.494e-06/0.3329, allocations: 7.938 kB / 417.1 MB, free: 7.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=47): time 0.001991/0.3349, allocations: 0.7895 MB / 417.8 MB, free: 6.496 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/0.335, allocations: 59.84 kB / 417.9 MB, free: 6.422 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.3352, allocations: 182.3 kB / 418.1 MB, free: 6.234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.477e-05/0.3352, allocations: 37.7 kB / 418.1 MB, free: 6.191 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001372/0.3353, allocations: 228.9 kB / 418.3 MB, free: 5.961 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/0.3355, allocations: 166.5 kB / 418.5 MB, free: 5.797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001372/0.3356, allocations: 82.25 kB / 418.6 MB, free: 5.711 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.3358, allocations: 334.8 kB / 418.9 MB, free: 5.375 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000307/0.3361, allocations: 157 kB / 419.1 MB, free: 5.219 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000355/0.3364, allocations: 224.8 kB / 419.3 MB, free: 4.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000649/0.3371, allocations: 395.5 kB / 419.7 MB, free: 4.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.3371, allocations: 0 / 419.7 MB, free: 4.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001063/0.3382, allocations: 0.5356 MB / 420.2 MB, free: 4.027 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.3382, allocations: 8 kB / 420.2 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.3382, allocations: 0 / 420.2 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003796/0.3386, allocations: 96.91 kB / 420.3 MB, free: 3.922 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003861/0.339, allocations: 91.88 kB / 420.4 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00228/0.3413, allocations: 2.049 MB / 422.4 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002921/0.3416, allocations: 47.66 kB / 422.5 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-05/0.3417, allocations: 23.94 kB / 422.5 MB, free: 1.578 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002386/0.3419, allocations: 165.8 kB / 422.7 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.195e-05/0.342, allocations: 23.86 kB / 422.7 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00111/0.3431, allocations: 0.5473 MB / 423.3 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.3431, allocations: 7.984 kB / 423.3 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.3432, allocations: 8 kB / 423.3 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.605e-06/0.3432, allocations: 3.938 kB / 423.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.3449, allocations: 1.123 MB / 424.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.345, allocations: 7.938 kB / 424.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000342/0.3453, allocations: 75.89 kB / 424.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003138/0.3456, allocations: 88.8 kB / 424.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.415e-05/0.3457, allocations: 8 kB / 424.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00203/0.3477, allocations: 2.037 MB / 426.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.3477, allocations: 96 / 426.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.3491, allocations: 0.7972 MB / 427.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.3493, allocations: 112.8 kB / 427.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.582e-05/0.3493, allocations: 8 kB / 427.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002392/0.3496, allocations: 15.98 kB / 427.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.027e-05/0.3497, allocations: 40.39 kB / 427.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.472e-05/0.3497, allocations: 8 kB / 427.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001348/0.3498, allocations: 136.2 kB / 427.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3498, allocations: 4.062 kB / 427.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006491/0.3505, allocations: 151.7 kB / 427.9 MB, free: 11.97 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * 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 (42): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001902/0.3524, allocations: 1.38 MB / 429.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001199/0.3536, allocations: 0.562 MB / 429.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.3536, allocations: 4 kB / 429.8 MB, free: 9.977 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006371/0.3543, allocations: 385.4 kB / 430.2 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003928/0.3547, allocations: 27.98 kB / 430.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005381/0.3601, allocations: 3.401 MB / 433.6 MB, free: 6.023 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005153/0.3606, allocations: 0.8084 MB / 434.4 MB, free: 5.188 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002056/0.3609, allocations: 54.83 kB / 434.5 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002178/0.3611, allocations: 131.4 kB / 434.6 MB, free: 5.004 MB / 350.1 MB Notification: Performance of SimCode: time 9.91e-07/0.3611, allocations: 4 kB / 434.6 MB, free: 5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03408/0.3952, allocations: 7.597 MB / 442.2 MB, free: 13.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.707/10.1, allocations: 7.922 kB / 442.2 MB, free: 13.58 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches