Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_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.001259/0.001259, allocations: 101.5 kB / 16.5 MB, free: 6.645 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.001218/0.001218, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.301/1.301, allocations: 222.9 MB / 241.1 MB, free: 13.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001024, allocations: 50.39 kB / 300.1 MB, free: 5.973 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08513/0.08617, allocations: 49.45 MB / 349.5 MB, free: 4.516 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.00765/0.09386, allocations: 7.117 MB / 356.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003534/0.09742, allocations: 2.326 MB / 359 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007173/0.09817, allocations: 19.94 kB / 359 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00139/0.09961, allocations: 453.6 kB / 359.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00102/0.1006, allocations: 329.6 kB / 359.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004519/0.1011, allocations: 179.8 kB / 359.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001274/0.1024, allocations: 1.142 MB / 361.1 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005891/0.103, allocations: 446.7 kB / 361.5 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005266/0.1035, allocations: 414.1 kB / 361.9 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004129/0.104, allocations: 465.8 kB / 362.4 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.634e-05/0.1041, allocations: 68 kB / 362.4 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000255/0.1043, allocations: 116 kB / 362.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.1045, allocations: 195.1 kB / 362.7 MB, free: 7.223 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004066/0.1049, allocations: 0.4936 MB / 363.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001062/0.1059, allocations: 1.378 MB / 364.6 MB, free: 5.344 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.106, allocations: 0 / 364.6 MB, free: 5.344 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.106, allocations: 0 / 364.6 MB, free: 5.344 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.317e-05/0.106, allocations: 0 / 364.6 MB, free: 5.344 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001829/0.1078, allocations: 1.253 MB / 365.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.1079, allocations: 8.031 kB / 365.9 MB, free: 4.035 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001275/0.108, allocations: 131 kB / 366 MB, free: 3.898 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004805/0.1085, allocations: 147.6 kB / 366.1 MB, free: 3.754 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008367/0.1093, allocations: 0.6338 MB / 366.8 MB, free: 3.074 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.96e-05/0.1094, allocations: 58.38 kB / 366.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.1095, allocations: 88.03 kB / 366.9 MB, free: 2.934 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.1107, allocations: 0.7793 MB / 367.7 MB, free: 2.121 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.684e-05/0.1108, allocations: 7.938 kB / 367.7 MB, free: 2.113 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.103e-05/0.1108, allocations: 32 kB / 367.7 MB, free: 2.082 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.864e-05/0.1109, allocations: 20 kB / 367.7 MB, free: 2.062 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009973/0.1119, allocations: 0.5153 MB / 368.3 MB, free: 1.551 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1578/0.2697, allocations: 3.386 MB / 371.6 MB, free: 23.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005496/0.2703, allocations: 229.9 kB / 371.9 MB, free: 23.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002477/0.2705, allocations: 112.6 kB / 372 MB, free: 23.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.095e-05/0.2706, allocations: 2.875 kB / 372 MB, free: 23.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.81e-05/0.2706, allocations: 39.67 kB / 372 MB, free: 23.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.745e-06/0.2706, allocations: 2.062 kB / 372 MB, free: 23.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002018/0.2726, allocations: 1.048 MB / 373.1 MB, free: 22.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.398e-05/0.2727, allocations: 80.88 kB / 373.2 MB, free: 22.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009753/0.2737, allocations: 0.7372 MB / 373.9 MB, free: 22.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.2737, allocations: 32.67 kB / 373.9 MB, free: 22.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002681/0.274, allocations: 497.1 kB / 374.4 MB, free: 22.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.575e-05/0.274, allocations: 106.5 kB / 374.5 MB, free: 21.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.2742, allocations: 113 kB / 374.6 MB, free: 21.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.2743, allocations: 379.8 kB / 375 MB, free: 21.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002858/0.2746, allocations: 125.9 kB / 375.1 MB, free: 21.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003919/0.275, allocations: 417.9 kB / 375.5 MB, free: 21.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005877/0.2756, allocations: 0.5704 MB / 376.1 MB, free: 20.6 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.2756, allocations: 3.75 kB / 376.1 MB, free: 20.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009373/0.2766, allocations: 0.6096 MB / 376.7 MB, free: 20.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.2766, allocations: 9.375 kB / 376.7 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.2766, allocations: 10.52 kB / 376.7 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001391/0.2767, allocations: 36.55 kB / 376.8 MB, free: 20.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004133/0.2772, allocations: 140.5 kB / 376.9 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000686/0.2779, allocations: 1.288 MB / 378.2 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004316/0.2783, allocations: 37.55 kB / 378.2 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.411e-05/0.2783, allocations: 30.12 kB / 378.3 MB, free: 18.97 MB / 302.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.0002334/0.2786, allocations: 244.3 kB / 378.5 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.752e-05/0.2787, allocations: 73.44 kB / 378.6 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005957/0.2793, allocations: 319.9 kB / 378.9 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.2793, allocations: 3.781 kB / 378.9 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.2793, allocations: 1.375 kB / 378.9 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.2793, allocations: 5.25 kB / 378.9 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001409/0.2807, allocations: 1.102 MB / 380 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.2807, allocations: 1.469 kB / 380 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002507/0.281, allocations: 58.86 kB / 380 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.868e-05/0.2811, allocations: 22.98 kB / 380.1 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.2811, allocations: 9.094 kB / 380.1 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005785/0.2817, allocations: 1.278 MB / 381.4 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.2817, allocations: 3.719 kB / 381.4 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007865/0.2825, allocations: 0.5585 MB / 381.9 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001645/0.2827, allocations: 174.6 kB / 382.1 MB, free: 16.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.607e-05/0.2828, allocations: 15.59 kB / 382.1 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000329/0.2831, allocations: 19.98 kB / 382.1 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.05e-05/0.2832, allocations: 25.48 kB / 382.1 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/0.2832, allocations: 12.56 kB / 382.2 MB, free: 16.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006328/0.2839, allocations: 0.5045 MB / 382.7 MB, free: 15.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2839, allocations: 0 / 382.7 MB, free: 15.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006416/0.2845, allocations: 158.4 kB / 382.8 MB, free: 15.8 MB / 302.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.001056/0.2856, allocations: 1.12 MB / 383.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007519/0.2863, allocations: 468 kB / 384.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.2864, allocations: 5.219 kB / 384.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003234/0.2867, allocations: 238.8 kB / 384.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009428/0.2876, allocations: 160.2 kB / 384.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008415/0.2961, allocations: 6.919 MB / 391.7 MB, free: 9.867 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004241/0.2965, allocations: 0.9444 MB / 392.7 MB, free: 9.152 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003895/0.2969, allocations: 88.86 kB / 392.7 MB, free: 9.129 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002986/0.2972, allocations: 300.4 kB / 393 MB, free: 8.898 MB / 302.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2972, allocations: 0 / 393 MB, free: 8.898 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9022/1.199, allocations: 14.57 MB / 407.6 MB, free: 14.85 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003072/1.2, allocations: 241 kB / 407.8 MB, free: 14.59 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.214/3.414, allocations: 0 / 407.8 MB, free: 14.59 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches