Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",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.001022/0.001022, allocations: 98.34 kB / 16.95 MB, free: 6.027 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.001095/0.001095, allocations: 179.7 kB / 17.84 MB, free: 5.672 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.689/1.689, allocations: 205.4 MB / 224 MB, free: 13.14 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.0004799/0.0004802, allocations: 8 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1218, allocations: 47.59 MB / 328.5 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01829/0.1402, allocations: 12.8 MB / 341.3 MB, free: 7.117 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0157/0.1559, allocations: 5.032 MB / 346.3 MB, free: 2.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005393/0.1614, allocations: 59.75 kB / 346.4 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005324/0.1668, allocations: 0.7418 MB / 347.1 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004309/0.1711, allocations: 472.4 kB / 347.6 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002861/0.174, allocations: 375.5 kB / 347.9 MB, free: 444 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005386/0.1795, allocations: 2.132 MB / 350.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002663/0.1822, allocations: 0.8291 MB / 350.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001854/0.184, allocations: 0.6376 MB / 351.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001954/0.186, allocations: 0.7461 MB / 352.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007639/0.1868, allocations: 100 kB / 352.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001168/0.188, allocations: 136 kB / 352.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006742/0.1887, allocations: 306.5 kB / 352.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001106/0.1898, allocations: 384.7 kB / 353.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004182/0.194, allocations: 2.36 MB / 355.5 MB, free: 8.758 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.1941, allocations: 0 / 355.5 MB, free: 8.758 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.1941, allocations: 0 / 355.5 MB, free: 8.758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001478/0.1942, allocations: 0 / 355.5 MB, free: 8.758 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.006848/0.2011, allocations: 1.95 MB / 357.5 MB, free: 6.754 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.789e-05/0.2012, allocations: 12.03 kB / 357.5 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008958/0.2021, allocations: 232.5 kB / 357.7 MB, free: 6.504 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001719/0.2038, allocations: 269.3 kB / 358 MB, free: 6.238 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003454/0.2073, allocations: 1.095 MB / 359.1 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001499/0.2075, allocations: 127.3 kB / 359.2 MB, free: 4.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003538/0.2078, allocations: 167.9 kB / 359.4 MB, free: 4.797 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004757/0.2126, allocations: 1.602 MB / 361 MB, free: 3.133 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.468e-05/0.2127, allocations: 0 / 361 MB, free: 3.133 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001879/0.2129, allocations: 68 kB / 361 MB, free: 3.066 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.387e-05/0.213, allocations: 40 kB / 361.1 MB, free: 3.027 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003833/0.2169, allocations: 1.117 MB / 362.2 MB, free: 1.906 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01359/0.2305, allocations: 6.717 MB / 368.9 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002067/0.2326, allocations: 0.9911 MB / 369.9 MB, free: 9.832 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006516/0.2333, allocations: 330.4 kB / 370.2 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.779e-05/0.2334, allocations: 12.48 kB / 370.2 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.007e-05/0.2335, allocations: 39.12 kB / 370.3 MB, free: 9.445 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 4.188e-06/0.2335, allocations: 0 / 370.3 MB, free: 9.445 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.005387/0.2389, allocations: 2.136 MB / 372.4 MB, free: 7.234 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.998e-05/0.239, allocations: 81.67 kB / 372.5 MB, free: 7.137 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002533/0.2416, allocations: 1.266 MB / 373.8 MB, free: 5.855 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.877e-05/0.2416, allocations: 37.7 kB / 373.8 MB, free: 5.812 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008127/0.2425, allocations: 0.8959 MB / 374.7 MB, free: 4.906 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002636/0.2427, allocations: 240.5 kB / 374.9 MB, free: 4.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.261e-05/0.2428, allocations: 24 kB / 375 MB, free: 4.645 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002603/0.2431, allocations: 345.9 kB / 375.3 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006221/0.2437, allocations: 314.5 kB / 375.6 MB, free: 3.996 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009619/0.2447, allocations: 0.7236 MB / 376.3 MB, free: 3.078 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007823/0.2454, allocations: 419 kB / 376.7 MB, free: 2.668 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.255e-06/0.2455, allocations: 4 kB / 376.7 MB, free: 2.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00233/0.2478, allocations: 1.192 MB / 377.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000473/0.2483, allocations: 496.3 kB / 378.4 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.953e-05/0.2483, allocations: 16 kB / 378.4 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002565/0.2486, allocations: 40.84 kB / 378.5 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009239/0.2495, allocations: 275.5 kB / 378.7 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2666/0.5162, allocations: 1.287 MB / 380 MB, free: 32.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001483/0.5177, allocations: 74.97 kB / 380.1 MB, free: 32.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.113e-05/0.5178, allocations: 50.66 kB / 380.1 MB, free: 32.26 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.5178, allocations: 5.281 kB / 380.1 MB, free: 32.26 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001643/0.5195, allocations: 0.9585 MB / 381.1 MB, free: 32.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.5195, allocations: 13.75 kB / 381.1 MB, free: 32.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001243/0.5196, allocations: 44.2 kB / 381.2 MB, free: 32.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008983/0.5205, allocations: 255.2 kB / 381.4 MB, free: 32.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008612/0.5214, allocations: 1.296 MB / 382.7 MB, free: 30.99 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008153/0.5223, allocations: 45.17 kB / 382.8 MB, free: 30.99 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.371e-05/0.5223, allocations: 51.94 kB / 382.8 MB, free: 30.99 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 138 * 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.0008909/0.5232, allocations: 432 kB / 383.2 MB, free: 30.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001842/0.5234, allocations: 142.4 kB / 383.4 MB, free: 30.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001355/0.5248, allocations: 0.7318 MB / 384.1 MB, free: 30.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/0.5248, allocations: 6.969 kB / 384.1 MB, free: 30.73 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.5248, allocations: 1.812 kB / 384.1 MB, free: 30.73 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.5248, allocations: 2.531 kB / 384.1 MB, free: 30.73 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003417/0.5283, allocations: 2.177 MB / 386.3 MB, free: 30.33 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.5283, allocations: 6.125 kB / 386.3 MB, free: 30.33 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006086/0.5289, allocations: 141.6 kB / 386.4 MB, free: 30.33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.615e-05/0.529, allocations: 23.52 kB / 386.5 MB, free: 30.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.031e-05/0.5291, allocations: 21.81 kB / 386.5 MB, free: 30.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006667/0.5297, allocations: 1.281 MB / 387.8 MB, free: 29.07 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.758e-06/0.5298, allocations: 6.906 kB / 387.8 MB, free: 29.07 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001839/0.5316, allocations: 1.167 MB / 388.9 MB, free: 28.85 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00039/0.532, allocations: 269 kB / 389.2 MB, free: 28.76 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001411/0.5322, allocations: 16.34 kB / 389.2 MB, free: 28.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000543/0.5327, allocations: 61.56 kB / 389.3 MB, free: 28.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.5328, allocations: 46.41 kB / 389.3 MB, free: 28.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.047e-05/0.5329, allocations: 20.22 kB / 389.3 MB, free: 28.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001252/0.5341, allocations: 0.8439 MB / 390.2 MB, free: 28.64 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5341, allocations: 4 kB / 390.2 MB, free: 28.63 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001652/0.5358, allocations: 0.4989 MB / 390.7 MB, free: 28.63 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.w,dcpm.inertiaRotor.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y,preFilter.y,slewRateLimiter.y) * 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 (63): * Single equations (assignments): 62 * 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.002136/0.5379, allocations: 1.74 MB / 392.4 MB, free: 27.83 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002479/0.5404, allocations: 1.49 MB / 393.9 MB, free: 27.58 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.5404, allocations: 0 / 393.9 MB, free: 27.58 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006312/0.5411, allocations: 444.2 kB / 394.3 MB, free: 27.46 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/0.5425, allocations: 305.5 kB / 394.6 MB, free: 27.45 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01302/0.5555, allocations: 8.777 MB / 403.4 MB, free: 23.59 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008738/0.5564, allocations: 1.241 MB / 404.7 MB, free: 22.86 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009702/0.5574, allocations: 177.3 kB / 404.8 MB, free: 22.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000688/0.5581, allocations: 0.6435 MB / 405.5 MB, free: 22.8 MB / 318.1 MB Notification: Performance of SimCode: time 1.222e-06/0.5581, allocations: 0 / 405.5 MB, free: 22.8 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04365/0.6018, allocations: 26.45 MB / 431.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002662/0.6021, allocations: 235.3 kB / 432.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.556/3.158, allocations: 4 kB / 432.2 MB, free: 14.01 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat