Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_4_0_0_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.0009651/0.0009652, allocations: 97.11 kB / 16.3 MB, free: 5.992 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.001055/0.001055, allocations: 182 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 223.2 MB / 241.1 MB, free: 5.488 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003/0.0003, allocations: 8.312 kB / 300.8 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1297, allocations: 50.42 MB / 351.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01443/0.1442, allocations: 11.81 MB / 363 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01153/0.1558, allocations: 5.135 MB / 368.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003753/0.1596, allocations: 59.75 kB / 368.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003919/0.1636, allocations: 0.8355 MB / 369.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004424/0.168, allocations: 0.8995 MB / 370 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002848/0.1709, allocations: 0.5734 MB / 370.5 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004464/0.1754, allocations: 1.594 MB / 372.1 MB, free: 6.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001946/0.1773, allocations: 0.829 MB / 373 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001238/0.1786, allocations: 0.6261 MB / 373.6 MB, free: 5.246 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0013/0.1799, allocations: 0.7269 MB / 374.3 MB, free: 4.516 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004248/0.1803, allocations: 96 kB / 374.4 MB, free: 4.422 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006773/0.181, allocations: 140 kB / 374.5 MB, free: 4.285 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003299/0.1814, allocations: 298.7 kB / 374.8 MB, free: 3.992 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006134/0.182, allocations: 388.6 kB / 375.2 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002586/0.1846, allocations: 2.333 MB / 377.5 MB, free: 1.266 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1846, allocations: 0 / 377.5 MB, free: 1.266 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1846, allocations: 0 / 377.5 MB, free: 1.266 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.717e-05/0.1847, allocations: 0 / 377.5 MB, free: 1.266 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.004188/0.1889, allocations: 1.939 MB / 379.5 MB, free: 15.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.189, allocations: 12.03 kB / 379.5 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004616/0.1894, allocations: 236.5 kB / 379.7 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008274/0.1903, allocations: 269.3 kB / 380 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00191/0.1922, allocations: 1.092 MB / 381.1 MB, free: 13.6 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001288/0.1923, allocations: 127.3 kB / 381.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002157/0.1926, allocations: 171.9 kB / 381.4 MB, free: 13.31 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002783/0.1953, allocations: 1.586 MB / 383 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.106e-05/0.1954, allocations: 4 kB / 383 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001265/0.1955, allocations: 71.98 kB / 383 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.34e-05/0.1956, allocations: 40 kB / 383.1 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002301/0.1979, allocations: 1.109 MB / 384.2 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0101/0.208, allocations: 6.693 MB / 390.9 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001808/0.2098, allocations: 0.991 MB / 391.9 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.461e-05/0.2099, allocations: 12.56 kB / 391.9 MB, free: 2.363 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.943e-05/0.2099, allocations: 47.11 kB / 391.9 MB, free: 2.309 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.484e-06/0.21, allocations: 0 / 391.9 MB, free: 2.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.004352/0.2143, allocations: 2.131 MB / 394.1 MB, free: 108 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.81e-05/0.2144, allocations: 85.67 kB / 394.1 MB, free: 4 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001729/0.2161, allocations: 1.242 MB / 395.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.116e-05/0.2162, allocations: 37.7 kB / 395.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006119/0.2168, allocations: 0.8926 MB / 396.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/0.217, allocations: 240.5 kB / 396.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.122e-05/0.2171, allocations: 24 kB / 396.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.2173, allocations: 349.9 kB / 396.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006204/0.2179, allocations: 314.5 kB / 397.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009167/0.2188, allocations: 0.7158 MB / 397.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007487/0.2196, allocations: 419 kB / 398.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.2196, allocations: 7.938 kB / 398.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002067/0.2217, allocations: 1.196 MB / 399.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002203/0.2239, allocations: 5.369 MB / 404.9 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-05/0.2239, allocations: 12 kB / 404.9 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002015/0.2241, allocations: 44.84 kB / 405 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009441/0.2251, allocations: 275.6 kB / 405.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001203/0.2263, allocations: 1.299 MB / 406.5 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.2273, allocations: 72.06 kB / 406.6 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.945e-05/0.2274, allocations: 48 kB / 406.7 MB, free: 2.754 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.688e-06/0.2274, allocations: 4 kB / 406.7 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001581/0.229, allocations: 0.9495 MB / 407.6 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/0.229, allocations: 16 kB / 407.6 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001007/0.2291, allocations: 40.84 kB / 407.7 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007798/0.2299, allocations: 260.1 kB / 407.9 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000886/0.2308, allocations: 1.299 MB / 409.2 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009422/0.2318, allocations: 47.98 kB / 409.3 MB, free: 0 / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-05/0.2319, allocations: 52.12 kB / 409.3 MB, free: 15.95 MB / 350.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.001003/0.2329, allocations: 432.6 kB / 409.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002152/0.2331, allocations: 134.6 kB / 409.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001493/0.2346, allocations: 0.7438 MB / 410.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.2346, allocations: 4 kB / 410.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2346, allocations: 0 / 410.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.2346, allocations: 7.984 kB / 410.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003448/0.2381, allocations: 2.162 MB / 412.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.2381, allocations: 4 kB / 412.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006171/0.2387, allocations: 148 kB / 412.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001047/0.2389, allocations: 20.86 kB / 413 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.097e-05/0.2389, allocations: 23.98 kB / 413 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009029/0.2398, allocations: 1.272 MB / 414.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.2398, allocations: 4.031 kB / 414.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002111/0.242, allocations: 1.264 MB / 415.5 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004842/0.2425, allocations: 267.4 kB / 415.8 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.2426, allocations: 16 kB / 415.8 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000567/0.2432, allocations: 59.95 kB / 415.9 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.815e-05/0.2433, allocations: 48.39 kB / 415.9 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.384e-05/0.2433, allocations: 20 kB / 415.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001229/0.2446, allocations: 0.8266 MB / 416.7 MB, free: 8.148 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2446, allocations: 0 / 416.7 MB, free: 8.148 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001654/0.2462, allocations: 0.5 MB / 417.2 MB, free: 7.648 MB / 350.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.002484/0.2487, allocations: 2.316 MB / 419.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00262/0.2514, allocations: 1.479 MB / 421 MB, free: 3.754 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.2514, allocations: 0.875 kB / 421 MB, free: 3.754 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007123/0.2521, allocations: 446 kB / 421.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00145/0.2536, allocations: 288.1 kB / 421.8 MB, free: 3.027 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2093/0.4628, allocations: 17.69 MB / 439.4 MB, free: 53.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001581/0.4645, allocations: 1.276 MB / 440.7 MB, free: 52.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001449/0.466, allocations: 182 kB / 440.9 MB, free: 52.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000942/0.4669, allocations: 0.6401 MB / 441.5 MB, free: 52.48 MB / 350.1 MB Notification: Performance of SimCode: time 1.854e-06/0.4669, allocations: 1.5 kB / 441.5 MB, free: 52.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04503/0.512, allocations: 26.2 MB / 467.7 MB, free: 34.96 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/0.5122, allocations: 234.4 kB / 468 MB, free: 34.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.546/3.058, allocations: 0 / 468 MB, free: 34.72 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat