Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009626/0.0009623, allocations: 99.67 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001114/0.001115, allocations: 201.3 kB / 17.9 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002695/0.0002698, allocations: 4 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1148, allocations: 51.49 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01437/0.1292, allocations: 11.97 MB / 370.2 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2769/0.4062, allocations: 5.25 MB / 375.4 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004078/0.4104, allocations: 61.72 kB / 375.5 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005125/0.4155, allocations: 0.837 MB / 376.3 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005579/0.4212, allocations: 0.8954 MB / 377.2 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003691/0.4249, allocations: 0.5954 MB / 377.8 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005816/0.4307, allocations: 1.585 MB / 379.4 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002095/0.4329, allocations: 0.8195 MB / 380.2 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001832/0.4347, allocations: 0.6183 MB / 380.8 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001688/0.4364, allocations: 0.7229 MB / 381.6 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003286/0.4368, allocations: 94.59 kB / 381.6 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008088/0.4376, allocations: 137.9 kB / 381.8 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003155/0.4379, allocations: 298.9 kB / 382.1 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000685/0.4386, allocations: 377.7 kB / 382.4 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003678/0.4423, allocations: 2.292 MB / 384.7 MB, free: 8.422 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.4423, allocations: 3.938 kB / 384.7 MB, free: 8.422 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4423, allocations: 0 / 384.7 MB, free: 8.422 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001028/0.4424, allocations: 0 / 384.7 MB, free: 8.422 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: 413 * Number of variables: 413 Notification: Performance of Generate backend data structure: time 0.004387/0.4468, allocations: 1.913 MB / 386.7 MB, free: 7.188 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.704e-05/0.4469, allocations: 10.22 kB / 386.7 MB, free: 7.188 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000459/0.4474, allocations: 233.5 kB / 386.9 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001041/0.4484, allocations: 271.3 kB / 387.2 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002304/0.4507, allocations: 1.085 MB / 388.2 MB, free: 6.402 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/0.4509, allocations: 119.4 kB / 388.4 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003282/0.4513, allocations: 171.9 kB / 388.5 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003284/0.4546, allocations: 1.572 MB / 390.1 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.147e-05/0.4546, allocations: 10.47 kB / 390.1 MB, free: 5.727 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001232/0.4547, allocations: 67.69 kB / 390.2 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-05/0.4548, allocations: 39.91 kB / 390.2 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002659/0.4575, allocations: 1.098 MB / 391.3 MB, free: 5.148 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01125/0.4687, allocations: 6.589 MB / 397.9 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002302/0.4711, allocations: 0.9922 MB / 398.9 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.332e-05/0.4712, allocations: 7.531 kB / 398.9 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.722e-05/0.4713, allocations: 46.75 kB / 398.9 MB, free: 15.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 5.19e-06/0.4713, allocations: 7.922 kB / 399 MB, free: 15.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.005305/0.4766, allocations: 2.115 MB / 401.1 MB, free: 13.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.699e-05/0.4767, allocations: 89.45 kB / 401.2 MB, free: 13.67 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002384/0.4791, allocations: 1.236 MB / 402.4 MB, free: 12.97 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.933e-05/0.4792, allocations: 36.39 kB / 402.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000717/0.4799, allocations: 0.8826 MB / 403.3 MB, free: 12.15 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002578/0.4802, allocations: 239.4 kB / 403.5 MB, free: 11.95 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.144e-05/0.4802, allocations: 25.47 kB / 403.6 MB, free: 11.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.4804, allocations: 353.6 kB / 403.9 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006319/0.481, allocations: 312 kB / 404.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009139/0.482, allocations: 0.7142 MB / 404.9 MB, free: 10.75 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000762/0.4827, allocations: 418.4 kB / 405.3 MB, free: 10.55 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.4828, allocations: 2.469 kB / 405.3 MB, free: 10.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002351/0.4851, allocations: 1.187 MB / 406.5 MB, free: 9.969 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002172/0.4873, allocations: 5.366 MB / 411.9 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.573e-05/0.4874, allocations: 13.53 kB / 411.9 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002431/0.4876, allocations: 42.94 kB / 412 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009932/0.4886, allocations: 275.2 kB / 412.2 MB, free: 4.199 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001034/0.4897, allocations: 1.296 MB / 413.5 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001205/0.4909, allocations: 76.11 kB / 413.6 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-05/0.491, allocations: 53.72 kB / 413.6 MB, free: 2.812 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.081e-05/0.491, allocations: 3.781 kB / 413.6 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001591/0.4926, allocations: 0.9449 MB / 414.6 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/0.4926, allocations: 16 kB / 414.6 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001102/0.4927, allocations: 44.78 kB / 414.6 MB, free: 1.828 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007962/0.4935, allocations: 256.1 kB / 414.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008777/0.4944, allocations: 1.299 MB / 416.2 MB, free: 148 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/0.4955, allocations: 52.14 kB / 416.2 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.559e-05/0.4955, allocations: 52 kB / 416.3 MB, free: 44 kB / 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.0009976/0.4965, allocations: 429.4 kB / 416.7 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002705/0.4968, allocations: 138.3 kB / 416.9 MB, free: 15.47 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001439/0.4983, allocations: 0.7213 MB / 417.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.4983, allocations: 12 kB / 417.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.4983, allocations: 0 / 417.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.4983, allocations: 3.984 kB / 417.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003743/0.5021, allocations: 2.15 MB / 419.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.5021, allocations: 4 kB / 419.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006353/0.5027, allocations: 144 kB / 419.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001056/0.5029, allocations: 24.84 kB / 419.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.332e-05/0.5029, allocations: 20 kB / 419.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009166/0.5038, allocations: 1.28 MB / 421.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.5038, allocations: 3.938 kB / 421.2 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002173/0.506, allocations: 1.268 MB / 422.5 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006294/0.5067, allocations: 263.4 kB / 422.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001524/0.5068, allocations: 16 kB / 422.8 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006115/0.5074, allocations: 67.84 kB / 422.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.5076, allocations: 40.5 kB / 422.9 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.133e-05/0.5076, allocations: 24 kB / 422.9 MB, free: 9.117 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001317/0.5089, allocations: 0.8186 MB / 423.7 MB, free: 8.297 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5089, allocations: 0 / 423.7 MB, free: 8.297 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001819/0.5108, allocations: 0.4922 MB / 424.2 MB, free: 7.805 MB / 334.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.00259/0.5134, allocations: 2.304 MB / 426.5 MB, free: 5.414 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002867/0.5163, allocations: 1.472 MB / 428 MB, free: 3.922 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.5163, allocations: 0 / 428 MB, free: 3.922 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000762/0.517, allocations: 446.8 kB / 428.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001881/0.5189, allocations: 298.7 kB / 428.7 MB, free: 3.191 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02089/0.5398, allocations: 17.61 MB / 446.3 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00102/0.5409, allocations: 1.264 MB / 447.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000981/0.5419, allocations: 182.5 kB / 447.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007977/0.5427, allocations: 0.6263 MB / 448.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of SimCode: time 1.272e-06/0.5427, allocations: 0 / 448.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06193/0.6047, allocations: 26 MB / 474.4 MB, free: 5.184 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001921/0.6049, allocations: 238.5 kB / 474.6 MB, free: 4.945 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.433/3.038, allocations: 4 kB / 474.6 MB, free: 4.941 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat