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.001363/0.001364, allocations: 106.5 kB / 17.73 MB, free: 5.32 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.001261/0.001261, allocations: 187 kB / 18.67 MB, free: 4.387 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.455/1.455, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001621/0.001621, allocations: 43.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09033/0.09197, 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.1739/0.2659, allocations: 7.082 MB / 381.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003525/0.2695, allocations: 2.387 MB / 384.1 MB, free: 8.492 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005784/0.2701, allocations: 20.72 kB / 384.1 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001427/0.2716, allocations: 0.4966 MB / 384.6 MB, free: 8.266 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009255/0.2725, allocations: 378.8 kB / 385 MB, free: 8.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000394/0.2729, allocations: 209.4 kB / 385.2 MB, free: 8.027 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001043/0.274, allocations: 1.202 MB / 386.4 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005884/0.2745, allocations: 0.5045 MB / 386.9 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005316/0.2751, allocations: 460.1 kB / 387.4 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005194/0.2756, allocations: 0.4885 MB / 387.9 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001459/0.2758, allocations: 117.7 kB / 388 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003263/0.2761, allocations: 150.1 kB / 388.1 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001527/0.2763, allocations: 229.3 kB / 388.3 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004352/0.2767, allocations: 0.5488 MB / 388.9 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00187/0.2786, allocations: 1.434 MB / 390.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2786, allocations: 0 / 390.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2786, allocations: 1.094 kB / 390.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.07e-05/0.2786, allocations: 0 / 390.3 MB, free: 5.707 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.00201/0.2807, allocations: 1.272 MB / 391.6 MB, free: 4.812 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.2807, allocations: 12.05 kB / 391.6 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001271/0.2808, allocations: 132.2 kB / 391.7 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004565/0.2813, allocations: 152.8 kB / 391.9 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009874/0.2823, allocations: 0.6533 MB / 392.5 MB, free: 4.184 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.062e-05/0.2824, allocations: 56.56 kB / 392.6 MB, free: 4.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/0.2825, allocations: 87.78 kB / 392.7 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.2838, allocations: 0.7703 MB / 393.5 MB, free: 3.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.379e-05/0.2838, allocations: 7.266 kB / 393.5 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.247e-05/0.2839, allocations: 40.17 kB / 393.5 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.039e-05/0.2839, allocations: 19.12 kB / 393.5 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.2849, allocations: 0.5136 MB / 394 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004133/0.2891, allocations: 3.379 MB / 397.4 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004892/0.2896, allocations: 238.1 kB / 397.6 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002652/0.2899, allocations: 118.5 kB / 397.8 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.588e-05/0.2899, allocations: 7.141 kB / 397.8 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.099e-05/0.2899, allocations: 37.39 kB / 397.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 2.335e-06/0.2899, allocations: 0 / 397.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.002251/0.2922, allocations: 1.058 MB / 398.9 MB, free: 200 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.2923, allocations: 85.28 kB / 398.9 MB, free: 100 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/0.2933, allocations: 0.7337 MB / 399.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.042e-05/0.2934, allocations: 34.41 kB / 399.7 MB, free: 15.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000396/0.2938, allocations: 0.5053 MB / 400.2 MB, free: 15.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.729e-05/0.2939, allocations: 106.2 kB / 400.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001627/0.294, allocations: 113 kB / 400.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.2942, allocations: 380.2 kB / 400.8 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002882/0.2945, allocations: 126 kB / 400.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005476/0.2951, allocations: 420 kB / 401.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008645/0.296, allocations: 0.5718 MB / 401.9 MB, free: 13.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.296, allocations: 2.344 kB / 401.9 MB, free: 13.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001129/0.2971, allocations: 0.619 MB / 402.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.2972, allocations: 12.25 kB / 402.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/0.2972, allocations: 9.625 kB / 402.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001797/0.2974, allocations: 34.8 kB / 402.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004296/0.2978, allocations: 139.7 kB / 402.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001206/0.299, allocations: 1.395 MB / 404.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005275/0.2996, allocations: 33.16 kB / 404.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.871e-05/0.2996, allocations: 32.75 kB / 404.2 MB, free: 12.09 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.0003449/0.3, allocations: 236.7 kB / 404.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.3001, allocations: 73.53 kB / 404.5 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006512/0.3007, allocations: 319.4 kB / 404.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.3007, allocations: 2.625 kB / 404.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.3008, allocations: 5.406 kB / 404.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.3008, allocations: 3.891 kB / 404.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001849/0.3026, allocations: 1.101 MB / 405.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.259e-06/0.3026, allocations: 2.219 kB / 405.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002842/0.3029, allocations: 58.08 kB / 406 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.79e-05/0.303, allocations: 24.28 kB / 406 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.3031, allocations: 11.69 kB / 406 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/0.3041, allocations: 1.378 MB / 407.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.3041, allocations: 5.688 kB / 407.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009209/0.305, allocations: 0.5511 MB / 407.9 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002514/0.3053, allocations: 176.8 kB / 408.1 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.028e-05/0.3054, allocations: 8.375 kB / 408.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003161/0.3057, allocations: 22.22 kB / 408.1 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.81e-05/0.3058, allocations: 33.97 kB / 408.2 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/0.3058, allocations: 11.5 kB / 408.2 MB, free: 8.934 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007146/0.3065, allocations: 0.4988 MB / 408.7 MB, free: 8.645 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3065, allocations: 0 / 408.7 MB, free: 8.645 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007526/0.3073, allocations: 158.1 kB / 408.8 MB, free: 8.633 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.001343/0.3087, allocations: 1.124 MB / 410 MB, free: 7.684 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001014/0.3097, allocations: 457.9 kB / 410.4 MB, free: 7.426 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.3097, allocations: 5.219 kB / 410.4 MB, free: 7.422 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003884/0.3101, allocations: 239.2 kB / 410.6 MB, free: 7.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009856/0.3111, allocations: 194 kB / 410.8 MB, free: 7.145 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009497/0.3206, allocations: 6.275 MB / 417.1 MB, free: 2.746 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000561/0.3212, allocations: 0.94 MB / 418 MB, free: 1.938 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003876/0.3216, allocations: 90.02 kB / 418.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003812/0.322, allocations: 297.8 kB / 418.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of SimCode: time 7.52e-07/0.322, allocations: 5.375 kB / 418.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04834/0.3703, allocations: 15.42 MB / 433.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/11.03, allocations: 23.75 kB / 433.9 MB, free: 3.047 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