Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",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.001507/0.001507, allocations: 107.5 kB / 16.92 MB, free: 6.332 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.001738/0.001738, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.373/1.373, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 43.53 kB / 300.7 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07942/0.08047, allocations: 49.45 MB / 350.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01299/0.0935, allocations: 11.73 MB / 361.9 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005437/0.09896, allocations: 3.222 MB / 365.1 MB, free: 5.312 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00109/0.1001, allocations: 35.94 kB / 365.2 MB, free: 5.277 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001737/0.1018, allocations: 0.6517 MB / 365.8 MB, free: 4.621 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001857/0.1037, allocations: 0.6743 MB / 366.5 MB, free: 3.941 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.1048, allocations: 399.5 kB / 366.9 MB, free: 3.551 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00245/0.1073, allocations: 2.239 MB / 369.1 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001338/0.1086, allocations: 0.985 MB / 370.1 MB, free: 272 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1348/0.2435, allocations: 0.8328 MB / 370.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001069/0.2446, allocations: 0.9131 MB / 371.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002848/0.2449, allocations: 217.6 kB / 372.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004488/0.2453, allocations: 252.6 kB / 372.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002428/0.2456, allocations: 432.7 kB / 372.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007794/0.2464, allocations: 1.013 MB / 373.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002294/0.2487, allocations: 2.648 MB / 376.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.2487, allocations: 0 / 376.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2487, allocations: 2.031 kB / 376.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.969e-05/0.2487, allocations: 0 / 376.4 MB, free: 11.7 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003117/0.2519, allocations: 2.066 MB / 378.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.2519, allocations: 10.53 kB / 378.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002293/0.2521, allocations: 221.4 kB / 378.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007415/0.2529, allocations: 256.3 kB / 378.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/0.2542, allocations: 1.021 MB / 380 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.238e-05/0.2543, allocations: 119.4 kB / 380.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001913/0.2545, allocations: 156.2 kB / 380.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002094/0.2566, allocations: 1.492 MB / 381.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.313e-05/0.2567, allocations: 11.81 kB / 381.7 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.2568, allocations: 63.84 kB / 381.8 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.103e-05/0.2568, allocations: 38.59 kB / 381.8 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001683/0.2585, allocations: 0.9796 MB / 382.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005973/0.2645, allocations: 6.566 MB / 389.4 MB, free: 4.746 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007174/0.2652, allocations: 405.2 kB / 389.8 MB, free: 4.551 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000384/0.2656, allocations: 228 kB / 390 MB, free: 4.445 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.2657, allocations: 6.438 kB / 390 MB, free: 4.445 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004714/0.2662, allocations: 264.7 kB / 390.3 MB, free: 4.258 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.014e-06/0.2662, allocations: 0 / 390.3 MB, free: 4.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.002663/0.2688, allocations: 1.757 MB / 392 MB, free: 3.055 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.2689, allocations: 165.9 kB / 392.2 MB, free: 2.863 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001411/0.2703, allocations: 1.272 MB / 393.5 MB, free: 2.152 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.124e-05/0.2704, allocations: 40.91 kB / 393.5 MB, free: 2.109 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003932/0.2708, allocations: 0.8721 MB / 394.4 MB, free: 1.336 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.512e-05/0.2709, allocations: 204.7 kB / 394.6 MB, free: 1.164 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002102/0.2711, allocations: 222.9 kB / 394.8 MB, free: 1.023 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.549e-05/0.2711, allocations: 351.4 kB / 395.1 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004023/0.2715, allocations: 232 kB / 395.4 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006663/0.2722, allocations: 0.797 MB / 396.2 MB, free: 15.68 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.2735, allocations: 1.118 MB / 397.3 MB, free: 14.67 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.2735, allocations: 5.5 kB / 397.3 MB, free: 14.67 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001804/0.2753, allocations: 1.176 MB / 398.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.988e-05/0.2754, allocations: 43.64 kB / 398.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.2754, allocations: 19.19 kB / 398.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002111/0.2756, allocations: 72.81 kB / 398.6 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007304/0.2764, allocations: 273.1 kB / 398.8 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001803/0.2782, allocations: 2.768 MB / 401.6 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008337/0.279, allocations: 71.44 kB / 401.7 MB, free: 11.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.909e-05/0.2791, allocations: 58.94 kB / 401.7 MB, free: 11.16 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004745/0.2796, allocations: 358.9 kB / 402.1 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.2797, allocations: 139.6 kB / 402.2 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009408/0.2807, allocations: 0.5505 MB / 402.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.2807, allocations: 14.33 kB / 402.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.2807, allocations: 0 / 402.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.2807, allocations: 0 / 402.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00242/0.2831, allocations: 1.87 MB / 404.7 MB, free: 9.156 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.2832, allocations: 2.969 kB / 404.7 MB, free: 9.156 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000411/0.2836, allocations: 109 kB / 404.8 MB, free: 9.133 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001354/0.2837, allocations: 52.86 kB / 404.8 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.037e-05/0.2838, allocations: 13.92 kB / 404.8 MB, free: 9.094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00168/0.2854, allocations: 2.743 MB / 407.6 MB, free: 6.238 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.2855, allocations: 10.62 kB / 407.6 MB, free: 6.234 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001232/0.2867, allocations: 0.9212 MB / 408.5 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003215/0.287, allocations: 253.4 kB / 408.8 MB, free: 5.379 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001529/0.2872, allocations: 21.83 kB / 408.8 MB, free: 5.367 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005392/0.2877, allocations: 28.61 kB / 408.8 MB, free: 5.355 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.2879, allocations: 56.94 kB / 408.9 MB, free: 5.324 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.2879, allocations: 16.97 kB / 408.9 MB, free: 5.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001032/0.2889, allocations: 0.845 MB / 409.7 MB, free: 4.746 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2889, allocations: 0 / 409.7 MB, free: 4.746 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001007/0.2899, allocations: 308 kB / 410 MB, free: 4.445 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00168/0.2916, allocations: 1.502 MB / 411.5 MB, free: 2.879 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00146/0.2931, allocations: 0.948 MB / 412.5 MB, free: 1.957 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.2931, allocations: 0 / 412.5 MB, free: 1.957 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006465/0.2938, allocations: 473.9 kB / 412.9 MB, free: 1.488 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001453/0.2952, allocations: 343.1 kB / 413.3 MB, free: 1.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01461/0.3099, allocations: 12.17 MB / 425.4 MB, free: 3.855 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007128/0.3106, allocations: 1.178 MB / 426.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006225/0.3112, allocations: 171.3 kB / 426.8 MB, free: 2.473 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006315/0.3119, allocations: 0.5657 MB / 427.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3119, allocations: 0 / 427.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05497/0.3669, allocations: 27.17 MB / 454.5 MB, free: 7.125 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.284/9.651, allocations: 19.62 kB / 454.5 MB, free: 7.109 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches