Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001307/0.001307, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001214/0.001214, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00177/0.00177, allocations: 63.89 kB / 358.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3147, allocations: 50.55 MB / 408.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009167/0.3239, allocations: 7.159 MB / 416 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004345/0.3283, allocations: 2.367 MB / 418.4 MB, free: 7.875 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009958/0.3293, allocations: 19.94 kB / 418.4 MB, free: 7.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001494/0.3308, allocations: 0.4892 MB / 418.9 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001168/0.3321, allocations: 389 kB / 419.2 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000446/0.3325, allocations: 203.7 kB / 419.4 MB, free: 6.781 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001426/0.334, allocations: 1.191 MB / 420.6 MB, free: 5.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007446/0.3347, allocations: 0.5115 MB / 421.1 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006576/0.3354, allocations: 470.1 kB / 421.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005875/0.336, allocations: 493.8 kB / 422.1 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001433/0.3361, allocations: 116 kB / 422.2 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003102/0.3365, allocations: 163.9 kB / 422.4 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001914/0.3367, allocations: 231.2 kB / 422.6 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005669/0.3372, allocations: 0.5365 MB / 423.1 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001635/0.3389, allocations: 1.444 MB / 424.6 MB, free: 1.613 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3389, allocations: 0 / 424.6 MB, free: 1.613 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3389, allocations: 0 / 424.6 MB, free: 1.613 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.281e-05/0.3389, allocations: 0 / 424.6 MB, free: 1.613 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002047/0.341, allocations: 1.265 MB / 425.8 MB, free: 304 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.341, allocations: 16.02 kB / 425.9 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001553/0.3412, allocations: 127 kB / 426 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004615/0.3417, allocations: 152.2 kB / 426.1 MB, free: 0 / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001072/0.3427, allocations: 0.6499 MB / 426.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.444e-05/0.3428, allocations: 62.31 kB / 426.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001098/0.3429, allocations: 88.08 kB / 426.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00133/0.3443, allocations: 0.7754 MB / 427.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.928e-05/0.3443, allocations: 7.938 kB / 427.7 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.475e-05/0.3444, allocations: 36 kB / 427.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.031e-05/0.3444, allocations: 20 kB / 427.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.3455, allocations: 0.5153 MB / 428.3 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004374/0.3499, allocations: 3.377 MB / 431.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005146/0.3504, allocations: 234.5 kB / 431.9 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002419/0.3507, allocations: 112.8 kB / 432 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.3507, allocations: 4 kB / 432 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.933e-05/0.3507, allocations: 34.56 kB / 432 MB, free: 9.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.305e-06/0.3507, allocations: 0 / 432 MB, free: 9.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002197/0.3529, allocations: 1.066 MB / 433.1 MB, free: 8.652 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.913e-05/0.353, allocations: 81.34 kB / 433.2 MB, free: 8.555 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001004/0.354, allocations: 0.7311 MB / 433.9 MB, free: 7.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.98e-05/0.3541, allocations: 29.7 kB / 433.9 MB, free: 7.785 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004003/0.3545, allocations: 0.5073 MB / 434.4 MB, free: 7.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.916e-05/0.3546, allocations: 111.1 kB / 434.5 MB, free: 7.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001633/0.3547, allocations: 114.2 kB / 434.7 MB, free: 7.043 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002021/0.355, allocations: 378.8 kB / 435 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00027/0.3552, allocations: 121.2 kB / 435.1 MB, free: 6.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005392/0.3558, allocations: 422.2 kB / 435.6 MB, free: 6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008207/0.3566, allocations: 0.5714 MB / 436.1 MB, free: 5.293 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.3566, allocations: 4 kB / 436.1 MB, free: 5.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001106/0.3577, allocations: 0.6156 MB / 436.8 MB, free: 4.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.838e-05/0.3578, allocations: 18.38 kB / 436.8 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/0.3578, allocations: 8 kB / 436.8 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001747/0.358, allocations: 36.84 kB / 436.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004396/0.3584, allocations: 143.7 kB / 437 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/0.3597, allocations: 1.394 MB / 438.3 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004237/0.3601, allocations: 31.94 kB / 438.4 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.335e-05/0.3602, allocations: 40.11 kB / 438.4 MB, free: 2.855 MB / 350.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.0003433/0.3605, allocations: 233.6 kB / 438.6 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.3606, allocations: 75.53 kB / 438.7 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006799/0.3613, allocations: 321.3 kB / 439 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-06/0.3613, allocations: 4 kB / 439 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.3613, allocations: 4 kB / 439 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3614, allocations: 0 / 439 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001684/0.363, allocations: 1.101 MB / 440.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.3631, allocations: 0 / 440.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000267/0.3633, allocations: 63.91 kB / 440.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.988e-05/0.3634, allocations: 16.84 kB / 440.2 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.3635, allocations: 8 kB / 440.2 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001173/0.3646, allocations: 1.375 MB / 441.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3646, allocations: 4.156 kB / 441.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009629/0.3656, allocations: 0.5609 MB / 442.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002315/0.3659, allocations: 172.7 kB / 442.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.04e-05/0.3659, allocations: 8 kB / 442.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003056/0.3663, allocations: 23.97 kB / 442.4 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.178e-05/0.3664, allocations: 31.84 kB / 442.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.3664, allocations: 8 kB / 442.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007151/0.3671, allocations: 0.5029 MB / 442.9 MB, free: 14.06 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3671, allocations: 0 / 442.9 MB, free: 14.06 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007607/0.3679, allocations: 164 kB / 443.1 MB, free: 13.9 MB / 366.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.001441/0.3693, allocations: 1.125 MB / 444.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009564/0.3703, allocations: 460.6 kB / 444.6 MB, free: 12.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.3703, allocations: 4.125 kB / 444.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000379/0.3707, allocations: 242.4 kB / 444.9 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008813/0.3716, allocations: 181.1 kB / 445.1 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009249/0.3808, allocations: 6.282 MB / 451.3 MB, free: 5.141 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006293/0.3815, allocations: 0.9449 MB / 452.3 MB, free: 4.168 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000357/0.3819, allocations: 90.02 kB / 452.4 MB, free: 4.078 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003798/0.3823, allocations: 303.3 kB / 452.7 MB, free: 3.781 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3823, allocations: 0 / 452.7 MB, free: 3.781 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2369/0.6191, allocations: 15.44 MB / 468.1 MB, free: 4.566 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.54, allocations: 2.969 kB / 468.1 MB, free: 4.566 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches