Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",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.001173/0.001173, allocations: 109.2 kB / 17.73 MB, free: 5.305 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.001144/0.001144, allocations: 188.2 kB / 18.66 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 55.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08564/0.08689, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.2361/0.3231, allocations: 7.09 MB / 381.7 MB, free: 9.344 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003909/0.327, allocations: 2.388 MB / 384.1 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009049/0.328, allocations: 16.91 kB / 384.1 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00162/0.3297, allocations: 0.5218 MB / 384.7 MB, free: 8.266 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001285/0.331, allocations: 405.4 kB / 385.1 MB, free: 8.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005801/0.3316, allocations: 206.9 kB / 385.3 MB, free: 8.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001561/0.3331, allocations: 1.203 MB / 386.5 MB, free: 7.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007186/0.3339, allocations: 0.5027 MB / 387 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007998/0.3347, allocations: 469.5 kB / 387.4 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007536/0.3355, allocations: 494.6 kB / 387.9 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001438/0.3356, allocations: 117.6 kB / 388 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003381/0.336, allocations: 149.8 kB / 388.2 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001496/0.3361, allocations: 230.2 kB / 388.4 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004538/0.3366, allocations: 0.5435 MB / 388.9 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001627/0.3382, allocations: 1.434 MB / 390.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3382, allocations: 4 kB / 390.4 MB, free: 5.648 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.185e-06/0.3382, allocations: 0.9688 kB / 390.4 MB, free: 5.648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.3383, allocations: 0 / 390.4 MB, free: 5.648 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.00226/0.3405, allocations: 1.281 MB / 391.7 MB, free: 4.746 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.3406, allocations: 9.625 kB / 391.7 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001298/0.3407, allocations: 127.6 kB / 391.8 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004835/0.3412, allocations: 149.4 kB / 391.9 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009077/0.3421, allocations: 0.6519 MB / 392.6 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.082e-05/0.3422, allocations: 62.64 kB / 392.7 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.3423, allocations: 84.02 kB / 392.7 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/0.3435, allocations: 0.7797 MB / 393.5 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.153e-05/0.3436, allocations: 7.328 kB / 393.5 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.81e-05/0.3436, allocations: 30.38 kB / 393.6 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.893e-05/0.3437, allocations: 19.72 kB / 393.6 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009786/0.3447, allocations: 0.5249 MB / 394.1 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003881/0.3485, allocations: 3.373 MB / 397.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004515/0.349, allocations: 234.2 kB / 397.7 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002281/0.3493, allocations: 117.5 kB / 397.8 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.3493, allocations: 9.031 kB / 397.8 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.3493, allocations: 32.59 kB / 397.9 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 1.683e-06/0.3493, allocations: 0 / 397.9 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.002002/0.3513, allocations: 1.063 MB / 398.9 MB, free: 140 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.329e-05/0.3514, allocations: 80.95 kB / 399 MB, free: 44 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001029/0.3524, allocations: 0.7333 MB / 399.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.255e-05/0.3525, allocations: 31.55 kB / 399.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003537/0.3528, allocations: 0.5047 MB / 400.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.084e-05/0.3529, allocations: 110.8 kB / 400.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/0.3531, allocations: 121.7 kB / 400.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3532, allocations: 377.1 kB / 400.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002684/0.3535, allocations: 124.7 kB / 401 MB, free: 14.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004317/0.3539, allocations: 422.5 kB / 401.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007934/0.3547, allocations: 0.5678 MB / 402 MB, free: 13.78 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/0.3547, allocations: 3.5 kB / 402 MB, free: 13.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001054/0.3558, allocations: 0.6189 MB / 402.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.3558, allocations: 8.438 kB / 402.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.3559, allocations: 10.56 kB / 402.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001543/0.356, allocations: 28.69 kB / 402.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004115/0.3564, allocations: 149.6 kB / 402.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001037/0.3575, allocations: 1.397 MB / 404.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004753/0.358, allocations: 33.81 kB / 404.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.779e-05/0.358, allocations: 30.12 kB / 404.2 MB, free: 12.02 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003014/0.3583, allocations: 238.3 kB / 404.5 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.3585, allocations: 77.97 kB / 404.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006385/0.3591, allocations: 319 kB / 404.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.3591, allocations: 3.625 kB / 404.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.3591, allocations: 0 / 404.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.3591, allocations: 1.344 kB / 404.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001676/0.3608, allocations: 1.095 MB / 406 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.3608, allocations: 1.766 kB / 406 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002533/0.3611, allocations: 65.89 kB / 406 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.376e-05/0.3612, allocations: 23.03 kB / 406 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.131e-05/0.3612, allocations: 8.469 kB / 406.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009889/0.3622, allocations: 1.367 MB / 407.4 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.3622, allocations: 10.36 kB / 407.4 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/0.3635, allocations: 0.5581 MB / 408 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003761/0.3639, allocations: 177.4 kB / 408.2 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/0.3641, allocations: 8.406 kB / 408.2 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005136/0.3646, allocations: 29.62 kB / 408.2 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.86e-05/0.3647, allocations: 22.7 kB / 408.2 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.973e-05/0.3647, allocations: 11.77 kB / 408.2 MB, free: 8.887 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001014/0.3658, allocations: 0.5028 MB / 408.7 MB, free: 8.594 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3658, allocations: 0 / 408.7 MB, free: 8.594 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009068/0.3667, allocations: 161.4 kB / 408.9 MB, free: 8.578 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * 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 (27): * Single equations (assignments): 26 * 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 {(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.001205/0.3679, allocations: 1.124 MB / 410 MB, free: 7.629 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008499/0.3688, allocations: 456.9 kB / 410.5 MB, free: 7.371 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3688, allocations: 1.938 kB / 410.5 MB, free: 7.371 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003514/0.3691, allocations: 240.5 kB / 410.7 MB, free: 7.199 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009193/0.3701, allocations: 186.4 kB / 410.9 MB, free: 7.102 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00816/0.3782, allocations: 6.279 MB / 417.2 MB, free: 2.699 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004917/0.3788, allocations: 0.9439 MB / 418.1 MB, free: 1.887 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003161/0.3791, allocations: 86.97 kB / 418.2 MB, free: 1.844 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000329/0.3794, allocations: 301 kB / 418.5 MB, free: 1.586 MB / 334.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3794, allocations: 1.188 kB / 418.5 MB, free: 1.586 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04793/0.4274, allocations: 15.42 MB / 433.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.51, allocations: 15.94 kB / 433.9 MB, free: 2.992 MB / 350.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches