Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000859/0.000859, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.153/1.153, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007285/0.0007285, allocations: 82.36 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002856/0.0002857, allocations: 12 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1718/0.1721, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.00624/0.1784, allocations: 8.457 MB / 383.7 MB, free: 38.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003619/0.182, allocations: 2.863 MB / 386.5 MB, free: 36.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005181/0.1826, allocations: 29.88 kB / 386.5 MB, free: 36.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009144/0.1835, allocations: 489.8 kB / 387 MB, free: 36.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007383/0.1843, allocations: 482.1 kB / 387.5 MB, free: 35.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003698/0.1846, allocations: 216.7 kB / 387.7 MB, free: 35.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00115/0.1858, allocations: 1.626 MB / 389.3 MB, free: 34.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005567/0.1864, allocations: 0.5489 MB / 389.9 MB, free: 33.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000443/0.1868, allocations: 0.5485 MB / 390.4 MB, free: 33.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004436/0.1873, allocations: 0.6339 MB / 391.1 MB, free: 32.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.1874, allocations: 88 kB / 391.1 MB, free: 32.67 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002497/0.1876, allocations: 127.9 kB / 391.3 MB, free: 32.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001287/0.1878, allocations: 242.9 kB / 391.5 MB, free: 32.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004188/0.1882, allocations: 0.7054 MB / 392.2 MB, free: 31.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007981/0.189, allocations: 1.515 MB / 393.7 MB, free: 30.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.189, allocations: 0 / 393.7 MB, free: 30.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.189, allocations: 0 / 393.7 MB, free: 30.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.25e-05/0.189, allocations: 0 / 393.7 MB, free: 30.07 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.001984/0.191, allocations: 1.544 MB / 395.3 MB, free: 28.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.1911, allocations: 11.97 kB / 395.3 MB, free: 28.45 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00014/0.1912, allocations: 168.9 kB / 395.5 MB, free: 28.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004243/0.1917, allocations: 203 kB / 395.7 MB, free: 28.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008777/0.1925, allocations: 0.821 MB / 396.5 MB, free: 27.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.918e-05/0.1927, allocations: 116.4 kB / 396.6 MB, free: 27.08 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.1928, allocations: 115.8 kB / 396.7 MB, free: 26.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001476/0.1943, allocations: 1.139 MB / 397.8 MB, free: 25.74 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.181e-05/0.1943, allocations: 11.98 kB / 397.8 MB, free: 25.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.447e-05/0.1944, allocations: 44 kB / 397.9 MB, free: 25.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/0.1944, allocations: 24 kB / 397.9 MB, free: 25.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.1956, allocations: 0.7691 MB / 398.7 MB, free: 24.89 MB / 298.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004053/0.1997, allocations: 3.973 MB / 402.7 MB, free: 20.72 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.201, allocations: 0.611 MB / 403.3 MB, free: 20.1 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004056/0.2014, allocations: 266.9 kB / 403.5 MB, free: 19.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.291e-05/0.2015, allocations: 20.53 kB / 403.5 MB, free: 19.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005383/0.202, allocations: 299.1 kB / 403.8 MB, free: 19.51 MB / 298.7 MB Notification: Performance of pre-optimization done (n=62): time 2.214e-06/0.202, allocations: 3.938 kB / 403.8 MB, free: 19.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=65): time 0.003621/0.2056, allocations: 2.123 MB / 406 MB, free: 17.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.702e-05/0.2058, allocations: 483.2 kB / 406.4 MB, free: 16.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001008/0.2068, allocations: 1.09 MB / 407.5 MB, free: 15.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.795e-05/0.2068, allocations: 41.7 kB / 407.6 MB, free: 15.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002875/0.2071, allocations: 0.635 MB / 408.2 MB, free: 14.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.2072, allocations: 240.7 kB / 408.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-05/0.2073, allocations: 20 kB / 408.5 MB, free: 14.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.437e-05/0.2073, allocations: 345.9 kB / 408.8 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004385/0.2078, allocations: 254.5 kB / 409 MB, free: 14.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005993/0.2084, allocations: 0.7169 MB / 409.8 MB, free: 13.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001/0.2094, allocations: 0.9531 MB / 410.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.2094, allocations: 4 kB / 410.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001486/0.2109, allocations: 1.134 MB / 411.9 MB, free: 10.85 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.2109, allocations: 63.41 kB / 411.9 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.2109, allocations: 12 kB / 411.9 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004698/0.2114, allocations: 177.6 kB / 412.1 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005643/0.212, allocations: 203.7 kB / 412.3 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002773/0.2148, allocations: 3.553 MB / 415.9 MB, free: 6.578 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007593/0.2156, allocations: 80.14 kB / 415.9 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.085e-05/0.2156, allocations: 48 kB / 416 MB, free: 6.453 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.000326/0.2159, allocations: 297.6 kB / 416.3 MB, free: 6.152 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.2161, allocations: 122.5 kB / 416.4 MB, free: 6.031 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001193/0.2173, allocations: 0.7233 MB / 417.1 MB, free: 5.285 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.2173, allocations: 8 kB / 417.1 MB, free: 5.277 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.2173, allocations: 0 / 417.1 MB, free: 5.277 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001072/0.2184, allocations: 0.984 MB / 418.1 MB, free: 4.188 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00211/0.2205, allocations: 1.802 MB / 419.9 MB, free: 2.301 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.2205, allocations: 224 / 419.9 MB, free: 2.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000429/0.2209, allocations: 115.9 kB / 420 MB, free: 2.188 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003509/0.2213, allocations: 129.6 kB / 420.1 MB, free: 2.055 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.139e-05/0.2213, allocations: 12 kB / 420.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002475/0.2238, allocations: 3.286 MB / 423.4 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.2238, allocations: 4 kB / 423.4 MB, free: 14.49 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00175/0.2256, allocations: 1.073 MB / 424.5 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003794/0.226, allocations: 255.5 kB / 424.8 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.2261, allocations: 19.98 kB / 424.8 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000605/0.2267, allocations: 51.91 kB / 424.8 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.2269, allocations: 60.42 kB / 424.9 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.638e-05/0.2269, allocations: 27.92 kB / 424.9 MB, free: 12.95 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009276/0.2278, allocations: 0.7289 MB / 425.7 MB, free: 12.21 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2279, allocations: 0 / 425.7 MB, free: 12.21 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009436/0.2288, allocations: 308 kB / 426 MB, free: 11.91 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002041/0.2309, allocations: 1.655 MB / 427.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001837/0.2327, allocations: 1.104 MB / 428.7 MB, free: 9.055 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2327, allocations: 4 kB / 428.7 MB, free: 9.051 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00083/0.2336, allocations: 0.5594 MB / 429.3 MB, free: 8.469 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001569/0.2351, allocations: 305.2 kB / 429.6 MB, free: 8.172 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01043/0.2456, allocations: 7.251 MB / 436.8 MB, free: 444 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006051/0.2462, allocations: 1.082 MB / 437.9 MB, free: 15.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000543/0.2468, allocations: 475.3 kB / 438.4 MB, free: 14.86 MB / 330.7 MB Notification: Performance of SimCode: time 4.21e-07/0.2468, allocations: 0 / 438.4 MB, free: 14.86 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.262/4.509, allocations: 29.02 MB / 467.4 MB, free: 1.785 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_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_Cooling/DCPM_Cooling.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches