Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00108/0.00108, allocations: 98.75 kB / 17 MB, free: 6.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001515/0.001516, allocations: 194.7 kB / 17.91 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.3 MB / 246 MB, free: 10.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002623/0.0002624, allocations: 4 kB / 306.8 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1362, allocations: 51.49 MB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01252/0.1488, allocations: 10.77 MB / 369.1 MB, free: 2.949 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2832/0.432, allocations: 3.108 MB / 372.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002192/0.4343, allocations: 36.03 kB / 372.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002344/0.4367, allocations: 0.5216 MB / 372.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003373/0.44, allocations: 0.5983 MB / 373.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001291/0.4414, allocations: 255.3 kB / 373.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005414/0.4468, allocations: 2.16 MB / 375.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002019/0.4488, allocations: 0.6843 MB / 376.4 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002565/0.4514, allocations: 0.7256 MB / 377.2 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001698/0.4531, allocations: 0.8114 MB / 378 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002813/0.4534, allocations: 106.6 kB / 378.1 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006219/0.4541, allocations: 145 kB / 378.2 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003603/0.4544, allocations: 314.3 kB / 378.5 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008551/0.4553, allocations: 404.5 kB / 378.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004667/0.46, allocations: 2.222 MB / 381.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.407e-06/0.46, allocations: 0 / 381.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.927e-06/0.46, allocations: 0 / 381.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001705/0.4602, allocations: 0 / 381.2 MB, free: 9.012 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.005484/0.4657, allocations: 1.864 MB / 383 MB, free: 7.996 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.009e-05/0.4658, allocations: 8.438 kB / 383 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005569/0.4663, allocations: 223.6 kB / 383.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001107/0.4675, allocations: 282.2 kB / 383.5 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002152/0.4696, allocations: 1.067 MB / 384.6 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001189/0.4698, allocations: 117.6 kB / 384.7 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002778/0.47, allocations: 158.2 kB / 384.9 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003737/0.4738, allocations: 1.503 MB / 386.4 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.381e-05/0.4739, allocations: 15.08 kB / 386.4 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000156/0.474, allocations: 63.66 kB / 386.4 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.039e-05/0.4741, allocations: 39.19 kB / 386.5 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002852/0.477, allocations: 1.059 MB / 387.5 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01039/0.4874, allocations: 6.314 MB / 393.8 MB, free: 2.531 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001693/0.4891, allocations: 0.6264 MB / 394.5 MB, free: 2.207 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000971/0.4901, allocations: 471.3 kB / 394.9 MB, free: 2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.802e-05/0.4902, allocations: 12.31 kB / 394.9 MB, free: 1.996 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.215e-05/0.4902, allocations: 38.56 kB / 395 MB, free: 1.949 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.866e-06/0.4902, allocations: 0 / 395 MB, free: 1.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.006012/0.4962, allocations: 2.467 MB / 397.5 MB, free: 408 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.829e-05/0.4963, allocations: 111.1 kB / 397.6 MB, free: 276 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002405/0.4987, allocations: 1.291 MB / 398.9 MB, free: 15.55 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.866e-05/0.4988, allocations: 40.58 kB / 398.9 MB, free: 15.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006802/0.4995, allocations: 0.8484 MB / 399.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002046/0.4997, allocations: 254.2 kB / 400 MB, free: 14.54 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.06e-05/0.4998, allocations: 28.75 kB / 400 MB, free: 14.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.4999, allocations: 344.6 kB / 400.4 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005832/0.5005, allocations: 296.3 kB / 400.6 MB, free: 14.04 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009568/0.5015, allocations: 0.7414 MB / 401.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000719/0.5022, allocations: 419.7 kB / 401.8 MB, free: 13.07 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.5022, allocations: 2.875 kB / 401.8 MB, free: 13.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002512/0.5047, allocations: 1.285 MB / 403.1 MB, free: 12.42 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.747e-05/0.5048, allocations: 17.44 kB / 403.1 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.727e-05/0.5048, allocations: 19.25 kB / 403.1 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005486/0.5054, allocations: 144.6 kB / 403.3 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008637/0.5063, allocations: 255.5 kB / 403.5 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004043/0.5103, allocations: 4.327 MB / 407.8 MB, free: 7.832 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001392/0.5117, allocations: 63.88 kB / 407.9 MB, free: 7.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.778e-05/0.5118, allocations: 52.12 kB / 407.9 MB, free: 7.719 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0009579/0.5128, allocations: 361.9 kB / 408.3 MB, free: 7.355 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002111/0.513, allocations: 138.3 kB / 408.4 MB, free: 7.219 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001823/0.5148, allocations: 0.8648 MB / 409.3 MB, free: 6.332 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.5148, allocations: 15.89 kB / 409.3 MB, free: 6.316 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.5148, allocations: 0 / 409.3 MB, free: 6.316 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.5149, allocations: 7.984 kB / 409.3 MB, free: 6.309 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004544/0.5194, allocations: 2.367 MB / 411.7 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-06/0.5194, allocations: 4 kB / 411.7 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005363/0.52, allocations: 131.8 kB / 411.8 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004354/0.5204, allocations: 138.6 kB / 412 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.571e-05/0.5205, allocations: 19.98 kB / 412 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003777/0.5243, allocations: 4.457 MB / 416.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.5243, allocations: 8.062 kB / 416.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002522/0.5268, allocations: 1.345 MB / 417.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000765/0.5276, allocations: 279.4 kB / 418.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002067/0.5278, allocations: 20 kB / 418.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006365/0.5285, allocations: 51.95 kB / 418.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.5286, allocations: 60.33 kB / 418.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.484e-05/0.5287, allocations: 31.98 kB / 418.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001492/0.5302, allocations: 0.8664 MB / 419.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5302, allocations: 0 / 419.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00154/0.5317, allocations: 324 kB / 419.4 MB, free: 11.63 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002752/0.5345, allocations: 1.93 MB / 421.3 MB, free: 9.625 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00209/0.5366, allocations: 1.132 MB / 422.5 MB, free: 8.457 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/0.5366, allocations: 8 kB / 422.5 MB, free: 8.449 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.5377, allocations: 0.7123 MB / 423.2 MB, free: 7.695 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002184/0.5399, allocations: 349.7 kB / 423.5 MB, free: 7.363 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01787/0.5577, allocations: 8.978 MB / 432.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009239/0.5587, allocations: 1.221 MB / 433.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000932/0.5597, allocations: 175.6 kB / 433.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000768/0.5604, allocations: 0.6125 MB / 434.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of SimCode: time 2.745e-06/0.5604, allocations: 0 / 434.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05386/0.6143, allocations: 28.67 MB / 463.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002405/0.6146, allocations: 236.7 kB / 463.4 MB, free: 15.28 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.719/3.334, allocations: 0 / 463.4 MB, free: 15.28 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat