Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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_Temperature,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",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.0008888/0.000889, allocations: 99.25 kB / 16.95 MB, free: 6.453 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.000878/0.000878, allocations: 183.2 kB / 17.84 MB, free: 6.004 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.669/1.669, allocations: 205.4 MB / 224 MB, free: 13.16 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.0005093/0.0005094, allocations: 12 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1466/0.1472, allocations: 47.58 MB / 328.5 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.01337/0.1606, allocations: 6.979 MB / 335.4 MB, free: 12.96 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006813/0.1675, allocations: 2.445 MB / 337.9 MB, free: 10.51 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00195/0.1695, allocations: 23.94 kB / 337.9 MB, free: 10.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002626/0.1722, allocations: 417.7 kB / 338.3 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002575/0.1748, allocations: 333.5 kB / 338.6 MB, free: 9.746 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001158/0.176, allocations: 139.8 kB / 338.8 MB, free: 9.609 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002737/0.1787, allocations: 1.117 MB / 339.9 MB, free: 8.488 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001279/0.18, allocations: 396 kB / 340.3 MB, free: 8.082 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001388/0.1814, allocations: 394.2 kB / 340.7 MB, free: 7.695 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001535/0.183, allocations: 434 kB / 341.1 MB, free: 7.27 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003167/0.1833, allocations: 56 kB / 341.1 MB, free: 7.215 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006387/0.184, allocations: 91.97 kB / 341.2 MB, free: 7.125 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004006/0.1844, allocations: 163.2 kB / 341.4 MB, free: 6.965 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005532/0.1849, allocations: 221.2 kB / 341.6 MB, free: 6.742 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001755/0.1867, allocations: 1.137 MB / 342.7 MB, free: 5.602 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.34e-05/0.1867, allocations: 4 kB / 342.7 MB, free: 5.598 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.486e-06/0.1868, allocations: 0 / 342.7 MB, free: 5.598 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.628e-05/0.1868, allocations: 0 / 342.7 MB, free: 5.598 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.003296/0.1901, allocations: 1.161 MB / 343.9 MB, free: 4.387 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.1902, allocations: 8.031 kB / 343.9 MB, free: 4.379 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003807/0.1906, allocations: 139.3 kB / 344 MB, free: 4.234 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007386/0.1913, allocations: 146.6 kB / 344.2 MB, free: 4.09 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002133/0.1935, allocations: 0.6134 MB / 344.8 MB, free: 3.43 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.364e-05/0.1936, allocations: 66 kB / 344.9 MB, free: 3.367 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001876/0.1938, allocations: 80 kB / 344.9 MB, free: 3.289 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002099/0.1959, allocations: 0.8223 MB / 345.8 MB, free: 2.434 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.285e-05/0.1959, allocations: 7.906 kB / 345.8 MB, free: 2.426 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.068e-05/0.196, allocations: 40 kB / 345.8 MB, free: 2.387 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.574e-05/0.1961, allocations: 20 kB / 345.8 MB, free: 2.367 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.1975, allocations: 0.5426 MB / 346.4 MB, free: 1.828 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005959/0.2034, allocations: 3.609 MB / 350 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006077/0.2041, allocations: 238.6 kB / 350.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002983/0.2044, allocations: 136.7 kB / 350.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.913e-05/0.2044, allocations: 0 / 350.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.705e-05/0.2045, allocations: 34.56 kB / 350.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 1.924e-06/0.2045, allocations: 0 / 350.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002382/0.2069, allocations: 1.118 MB / 351.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.211e-05/0.207, allocations: 77.11 kB / 351.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00114/0.2081, allocations: 0.7585 MB / 352.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.183e-05/0.2082, allocations: 29.7 kB / 352.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004301/0.2086, allocations: 0.5174 MB / 352.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.2087, allocations: 106.5 kB / 353 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.148e-05/0.2088, allocations: 8 kB / 353 MB, free: 10.83 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002548/0.209, allocations: 382.8 kB / 353.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003072/0.2093, allocations: 141.2 kB / 353.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005751/0.2099, allocations: 446.2 kB / 353.9 MB, free: 9.723 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004373/0.2104, allocations: 220.1 kB / 354.2 MB, free: 9.508 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.2104, allocations: 0 / 354.2 MB, free: 9.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001196/0.2116, allocations: 0.6577 MB / 354.8 MB, free: 8.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.2116, allocations: 8 kB / 354.8 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.2116, allocations: 12 kB / 354.8 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001568/0.2118, allocations: 36.84 kB / 354.9 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004424/0.2123, allocations: 148.1 kB / 355 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001077/0.2134, allocations: 1.292 MB / 356.3 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005408/0.2139, allocations: 48.05 kB / 356.4 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.036e-05/0.214, allocations: 35.98 kB / 356.4 MB, free: 7.133 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003882/0.2144, allocations: 241.5 kB / 356.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.2145, allocations: 79.06 kB / 356.7 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007056/0.2152, allocations: 353.9 kB / 357 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.2152, allocations: 4 kB / 357.1 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.2152, allocations: 4 kB / 357.1 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.2152, allocations: 4 kB / 357.1 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001887/0.2171, allocations: 1.132 MB / 358.2 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.2172, allocations: 0 / 358.2 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002862/0.2174, allocations: 76.06 kB / 358.3 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001041/0.2176, allocations: 16.86 kB / 358.3 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.126e-05/0.2176, allocations: 11.98 kB / 358.3 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/0.2186, allocations: 1.28 MB / 359.6 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.2186, allocations: 3.984 kB / 359.6 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009513/0.2196, allocations: 0.5999 MB / 360.2 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002731/0.2199, allocations: 172.2 kB / 360.3 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.722e-05/0.22, allocations: 11.98 kB / 360.4 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003275/0.2203, allocations: 27.98 kB / 360.4 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.555e-05/0.2204, allocations: 27.91 kB / 360.4 MB, free: 2.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.026e-05/0.2204, allocations: 12 kB / 360.4 MB, free: 2.793 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007319/0.2212, allocations: 0.5107 MB / 360.9 MB, free: 2.289 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2212, allocations: 0 / 360.9 MB, free: 2.289 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007474/0.2219, allocations: 172 kB / 361.1 MB, free: 2.121 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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001269/0.2232, allocations: 1.14 MB / 362.2 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009042/0.2241, allocations: 495.9 kB / 362.7 MB, free: 444 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.2242, allocations: 4 kB / 362.7 MB, free: 440 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000358/0.2245, allocations: 251.8 kB / 363 MB, free: 176 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.2255, allocations: 175.5 kB / 363.1 MB, free: 15.99 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008796/0.2343, allocations: 4.572 MB / 367.7 MB, free: 11.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005989/0.235, allocations: 0.9565 MB / 368.7 MB, free: 10.22 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000409/0.2354, allocations: 90.17 kB / 368.8 MB, free: 10.13 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004061/0.2358, allocations: 315.3 kB / 369.1 MB, free: 9.82 MB / 318.1 MB Notification: Performance of SimCode: time 9.42e-07/0.2358, allocations: 4 kB / 369.1 MB, free: 9.816 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2233/0.4591, allocations: 14.7 MB / 383.8 MB, free: 49.88 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001962/0.4594, allocations: 223.4 kB / 384 MB, free: 49.64 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.298/2.757, allocations: 0 / 384 MB, free: 49.64 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat does not exist to compare? outputFormat=mat