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.001068/0.001068, allocations: 105.5 kB / 17.15 MB, free: 6.328 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.001005/0.001005, allocations: 198 kB / 18.07 MB, free: 5.434 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.301/1.301, allocations: 205.1 MB / 223.9 MB, free: 12.41 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.001793/0.001794, allocations: 51.92 kB / 280.1 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1158, allocations: 46.64 MB / 326.7 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.01239/0.1282, allocations: 7.078 MB / 333.8 MB, free: 13.66 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005653/0.1339, allocations: 2.358 MB / 336.1 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001136/0.1352, allocations: 23.94 kB / 336.2 MB, free: 11.26 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002031/0.1372, allocations: 449.7 kB / 336.6 MB, free: 10.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001628/0.1389, allocations: 321.7 kB / 336.9 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007301/0.1396, allocations: 187.8 kB / 337.1 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001993/0.1416, allocations: 1.136 MB / 338.2 MB, free: 9.18 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001009/0.1426, allocations: 446.7 kB / 338.7 MB, free: 8.723 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007946/0.1435, allocations: 414.1 kB / 339.1 MB, free: 8.316 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000592/0.1441, allocations: 469.7 kB / 339.5 MB, free: 7.855 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001413/0.1442, allocations: 68 kB / 339.6 MB, free: 7.789 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003466/0.1446, allocations: 112 kB / 339.7 MB, free: 7.68 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000189/0.1448, allocations: 183.2 kB / 339.9 MB, free: 7.5 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006117/0.1454, allocations: 0.5013 MB / 340.4 MB, free: 6.996 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001621/0.147, allocations: 1.386 MB / 341.8 MB, free: 5.605 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.147, allocations: 0 / 341.8 MB, free: 5.605 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1471, allocations: 0 / 341.8 MB, free: 5.605 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.393e-05/0.1471, allocations: 4 kB / 341.8 MB, free: 5.602 MB / 286.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.00284/0.1499, allocations: 1.25 MB / 343 MB, free: 4.301 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.15, allocations: 12.03 kB / 343 MB, free: 4.289 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002202/0.1502, allocations: 123.1 kB / 343.2 MB, free: 4.16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007356/0.151, allocations: 143.7 kB / 343.3 MB, free: 4.02 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001331/0.1523, allocations: 0.6454 MB / 343.9 MB, free: 3.328 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.383e-05/0.1524, allocations: 62.38 kB / 344 MB, free: 3.27 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.1526, allocations: 76.12 kB / 344.1 MB, free: 3.195 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001963/0.1545, allocations: 0.7872 MB / 344.9 MB, free: 2.375 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.499e-05/0.1546, allocations: 7.844 kB / 344.9 MB, free: 2.367 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.481e-05/0.1547, allocations: 32 kB / 344.9 MB, free: 2.336 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.461e-05/0.1547, allocations: 20 kB / 344.9 MB, free: 2.316 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001587/0.1563, allocations: 0.5231 MB / 345.5 MB, free: 1.797 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005864/0.1622, allocations: 3.383 MB / 348.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000703/0.1629, allocations: 234.5 kB / 349.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000357/0.1633, allocations: 116.8 kB / 349.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.411e-05/0.1634, allocations: 4 kB / 349.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/0.1634, allocations: 34.56 kB / 349.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.455e-06/0.1634, allocations: 0 / 349.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002934/0.1664, allocations: 1.043 MB / 350.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.586e-05/0.1665, allocations: 81.11 kB / 350.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001395/0.1679, allocations: 0.7426 MB / 351.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.072e-05/0.1679, allocations: 25.7 kB / 351.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004576/0.1684, allocations: 0.4943 MB / 351.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001475/0.1685, allocations: 110.5 kB / 351.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/0.1688, allocations: 110.2 kB / 351.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.169, allocations: 374.8 kB / 352.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004084/0.1694, allocations: 129.2 kB / 352.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007076/0.1701, allocations: 422.1 kB / 352.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.1712, allocations: 0.5675 MB / 353.3 MB, free: 9.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.668e-06/0.1712, allocations: 4 kB / 353.3 MB, free: 9.316 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0017/0.1729, allocations: 0.6152 MB / 353.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.068e-05/0.173, allocations: 8 kB / 353.9 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.106e-05/0.173, allocations: 16.06 kB / 353.9 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002431/0.1733, allocations: 32.84 kB / 354 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006887/0.174, allocations: 139.8 kB / 354.1 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001531/0.1755, allocations: 1.291 MB / 355.4 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008754/0.1764, allocations: 27.98 kB / 355.4 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.075e-05/0.1765, allocations: 39.94 kB / 355.5 MB, free: 7.008 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.0005254/0.177, allocations: 241.6 kB / 355.7 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/0.1772, allocations: 71.06 kB / 355.8 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009478/0.1782, allocations: 317.5 kB / 356.1 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1782, allocations: 4 kB / 356.1 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1782, allocations: 3.938 kB / 356.1 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1782, allocations: 3.984 kB / 356.1 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001715/0.1799, allocations: 1.098 MB / 357.2 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.1799, allocations: 4 kB / 357.2 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002621/0.1802, allocations: 59.91 kB / 357.2 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001011/0.1803, allocations: 24.78 kB / 357.3 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.1804, allocations: 8 kB / 357.3 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000911/0.1813, allocations: 1.276 MB / 358.6 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.1813, allocations: 7.969 kB / 358.6 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000883/0.1822, allocations: 0.5521 MB / 359.1 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002207/0.1824, allocations: 172.2 kB / 359.3 MB, free: 2.883 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.802e-05/0.1825, allocations: 11.98 kB / 359.3 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003164/0.1828, allocations: 19.98 kB / 359.3 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.844e-05/0.1829, allocations: 27.91 kB / 359.3 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.1829, allocations: 8 kB / 359.3 MB, free: 2.816 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006586/0.1836, allocations: 0.503 MB / 359.9 MB, free: 2.316 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1836, allocations: 0 / 359.9 MB, free: 2.316 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006922/0.1843, allocations: 163.9 kB / 360 MB, free: 2.156 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.001329/0.1856, allocations: 1.109 MB / 361.1 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001042/0.1867, allocations: 460.7 kB / 361.6 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.1867, allocations: 7.875 kB / 361.6 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003617/0.1871, allocations: 239 kB / 361.8 MB, free: 288 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.1881, allocations: 171.1 kB / 362 MB, free: 120 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/0.1982, allocations: 6.927 MB / 368.9 MB, free: 8.789 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005766/0.1988, allocations: 0.9411 MB / 369.8 MB, free: 7.82 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004111/0.1993, allocations: 90.02 kB / 369.9 MB, free: 7.73 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003475/0.1996, allocations: 303.3 kB / 370.2 MB, free: 7.434 MB / 318.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1996, allocations: 0 / 370.2 MB, free: 7.434 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1888/0.3885, allocations: 14.56 MB / 384.8 MB, free: 52.46 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001416/0.3886, allocations: 230.9 kB / 385 MB, free: 52.21 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.045/2.434, allocations: 0 / 385 MB, free: 52.21 MB / 318.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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","../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