Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008562/0.0008563, allocations: 101.6 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008747/0.0008746, allocations: 195.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 227.4 MB / 246 MB, free: 10.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00027/0.0002701, allocations: 4 kB / 306.8 MB, free: 1.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1393, allocations: 51.5 MB / 358.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01281/0.1522, allocations: 10.41 MB / 368.7 MB, free: 3.285 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007661/0.1599, allocations: 3.076 MB / 371.8 MB, free: 204 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002248/0.1622, allocations: 35.94 kB / 371.8 MB, free: 168 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2809/0.4431, allocations: 0.5094 MB / 372.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004774/0.4479, allocations: 0.5547 MB / 372.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001762/0.4497, allocations: 242.1 kB / 373.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005495/0.4552, allocations: 2.023 MB / 375.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001758/0.457, allocations: 0.6723 MB / 375.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002532/0.4596, allocations: 0.6682 MB / 376.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001905/0.4615, allocations: 0.7463 MB / 377.2 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003093/0.4618, allocations: 100.8 kB / 377.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000661/0.4625, allocations: 139.5 kB / 377.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003295/0.4628, allocations: 290.3 kB / 377.8 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007275/0.4635, allocations: 390.1 kB / 378.1 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003565/0.4671, allocations: 2.111 MB / 380.3 MB, free: 9.332 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.057e-05/0.4671, allocations: 4 kB / 380.3 MB, free: 9.328 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.087e-06/0.4671, allocations: 0 / 380.3 MB, free: 9.328 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.025e-05/0.4672, allocations: 0 / 380.3 MB, free: 9.328 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004188/0.4714, allocations: 1.775 MB / 382 MB, free: 8.332 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.73e-05/0.4715, allocations: 11 kB / 382 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003607/0.4719, allocations: 229.4 kB / 382.3 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008308/0.4727, allocations: 258.6 kB / 382.5 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/0.4745, allocations: 0.9858 MB / 383.5 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/0.4747, allocations: 115.1 kB / 383.6 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002548/0.4749, allocations: 164 kB / 383.8 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003086/0.478, allocations: 1.479 MB / 385.3 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.557e-05/0.4781, allocations: 12.02 kB / 385.3 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001339/0.4782, allocations: 64.88 kB / 385.3 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.657e-05/0.4783, allocations: 38.03 kB / 385.4 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002225/0.4805, allocations: 0.9756 MB / 386.3 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008919/0.4894, allocations: 6.6 MB / 392.9 MB, free: 2.859 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.4905, allocations: 402.6 kB / 393.3 MB, free: 2.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005363/0.491, allocations: 231 kB / 393.6 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.871e-05/0.4911, allocations: 5.156 kB / 393.6 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000652/0.4918, allocations: 275.8 kB / 393.8 MB, free: 2.359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.763e-06/0.4918, allocations: 2.031 kB / 393.8 MB, free: 2.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.003582/0.4954, allocations: 1.786 MB / 395.6 MB, free: 1.141 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.28e-05/0.4954, allocations: 161.7 kB / 395.8 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001841/0.4973, allocations: 1.267 MB / 397.1 MB, free: 240 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.162e-05/0.4973, allocations: 37.83 kB / 397.1 MB, free: 200 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001122/0.4985, allocations: 0.8992 MB / 398 MB, free: 15.55 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.4987, allocations: 205.2 kB / 398.2 MB, free: 15.38 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.297e-05/0.4987, allocations: 25.5 kB / 398.2 MB, free: 15.36 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.4989, allocations: 355.5 kB / 398.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004738/0.4993, allocations: 225.1 kB / 398.8 MB, free: 14.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008682/0.5002, allocations: 0.8056 MB / 399.6 MB, free: 14 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006974/0.5009, allocations: 399.3 kB / 400 MB, free: 13.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.239e-05/0.501, allocations: 4.75 kB / 400 MB, free: 13.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00224/0.5032, allocations: 1.173 MB / 401.2 MB, free: 13.17 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.719e-05/0.5033, allocations: 43.81 kB / 401.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.346e-05/0.5033, allocations: 21.06 kB / 401.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002498/0.5036, allocations: 67.67 kB / 401.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007344/0.5043, allocations: 271.7 kB / 401.5 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001994/0.5063, allocations: 2.582 MB / 404.1 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001422/0.5077, allocations: 69.61 kB / 404.2 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.051e-05/0.5078, allocations: 70.05 kB / 404.3 MB, free: 10.31 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008789/0.5087, allocations: 361.9 kB / 404.6 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002213/0.5089, allocations: 135.1 kB / 404.8 MB, free: 9.969 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001103/0.5101, allocations: 0.5552 MB / 405.3 MB, free: 9.645 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.5101, allocations: 14.2 kB / 405.3 MB, free: 9.637 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.5101, allocations: 0 / 405.3 MB, free: 9.637 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.5101, allocations: 3.984 kB / 405.3 MB, free: 9.633 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003328/0.5134, allocations: 1.875 MB / 407.2 MB, free: 8.254 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.5135, allocations: 4.953 kB / 407.2 MB, free: 8.254 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004345/0.5139, allocations: 115.2 kB / 407.3 MB, free: 8.223 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001695/0.5141, allocations: 47.56 kB / 407.4 MB, free: 8.191 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.694e-05/0.5141, allocations: 16.97 kB / 407.4 MB, free: 8.184 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00191/0.5161, allocations: 2.547 MB / 409.9 MB, free: 5.473 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/0.5161, allocations: 7.938 kB / 409.9 MB, free: 5.465 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001736/0.5178, allocations: 0.9304 MB / 410.9 MB, free: 4.465 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006642/0.5185, allocations: 259.5 kB / 411.1 MB, free: 4.191 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001456/0.5186, allocations: 15.98 kB / 411.1 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005053/0.5192, allocations: 31.98 kB / 411.2 MB, free: 4.145 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.5193, allocations: 59.81 kB / 411.2 MB, free: 4.086 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.24e-05/0.5193, allocations: 20 kB / 411.2 MB, free: 4.066 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001311/0.5206, allocations: 0.8344 MB / 412.1 MB, free: 3.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5207, allocations: 0 / 412.1 MB, free: 3.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001416/0.5221, allocations: 304 kB / 412.4 MB, free: 2.934 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * 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 (54): * Single equations (assignments): 50 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001888/0.524, allocations: 1.532 MB / 413.9 MB, free: 1.316 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001729/0.5257, allocations: 0.9198 MB / 414.8 MB, free: 372 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.303e-06/0.5257, allocations: 4 kB / 414.8 MB, free: 368 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006524/0.5264, allocations: 477.8 kB / 415.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001666/0.5281, allocations: 315.8 kB / 415.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01446/0.5425, allocations: 8.049 MB / 423.7 MB, free: 6.895 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008711/0.5435, allocations: 1.178 MB / 424.8 MB, free: 5.688 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007462/0.5442, allocations: 167.3 kB / 425 MB, free: 5.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007172/0.545, allocations: 0.5696 MB / 425.6 MB, free: 4.949 MB / 334.1 MB Notification: Performance of SimCode: time 1.353e-06/0.545, allocations: 3.938 kB / 425.6 MB, free: 4.945 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05136/0.5963, allocations: 25.62 MB / 451.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001903/0.5966, allocations: 223.1 kB / 451.4 MB, free: 11.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.684/3.28, allocations: 3.938 kB / 451.4 MB, free: 11.46 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat does not exist to compare? outputFormat=mat