Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.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.DC_CompareCharacteristics,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001293/0.001293, allocations: 93.94 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001398/0.001398, allocations: 201.1 kB / 17.89 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000258/0.0002581, allocations: 12 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1183, allocations: 51.5 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics): time 0.225/0.3434, allocations: 14.97 MB / 373.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0104/0.3539, allocations: 5.576 MB / 378.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003133/0.357, allocations: 58.75 kB / 378.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004248/0.3613, allocations: 1.074 MB / 379.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005677/0.367, allocations: 1.251 MB / 381.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001897/0.3689, allocations: 429.1 kB / 381.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007419/0.3764, allocations: 2.795 MB / 384.3 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002191/0.3786, allocations: 1.166 MB / 385.5 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002862/0.3815, allocations: 1.141 MB / 386.7 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002624/0.3841, allocations: 1.277 MB / 387.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004104/0.3845, allocations: 167.6 kB / 388.1 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001138/0.3857, allocations: 207.6 kB / 388.3 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004092/0.3861, allocations: 491.4 kB / 388.8 MB, free: 7.273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009645/0.3871, allocations: 0.6384 MB / 389.4 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003627/0.3907, allocations: 3.571 MB / 393 MB, free: 4.867 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3907, allocations: 1.062 kB / 393 MB, free: 4.867 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3907, allocations: 0 / 393 MB, free: 4.867 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001079/0.3908, allocations: 0 / 393 MB, free: 4.867 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: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.005632/0.3965, allocations: 2.826 MB / 395.8 MB, free: 2.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.3965, allocations: 8.344 kB / 395.8 MB, free: 2.879 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005055/0.3971, allocations: 360.3 kB / 396.2 MB, free: 2.602 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001788/0.3988, allocations: 489.1 kB / 396.7 MB, free: 2.383 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00301/0.4019, allocations: 1.674 MB / 398.3 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001486/0.402, allocations: 196.2 kB / 398.5 MB, free: 1.012 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003272/0.4024, allocations: 270.7 kB / 398.8 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0042/0.4066, allocations: 2.421 MB / 401.2 MB, free: 15.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.849e-05/0.4067, allocations: 16.23 kB / 401.2 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001997/0.4069, allocations: 112.2 kB / 401.3 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.832e-05/0.4069, allocations: 65.09 kB / 401.4 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003074/0.41, allocations: 1.64 MB / 403 MB, free: 14.44 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01614/0.4262, allocations: 10.63 MB / 413.7 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.4277, allocations: 1.061 MB / 414.7 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.893e-05/0.4278, allocations: 12.64 kB / 414.7 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.535e-05/0.4279, allocations: 55.16 kB / 414.8 MB, free: 3.297 MB / 318.1 MB Notification: Performance of pre-optimization done (n=81): time 3.487e-06/0.4279, allocations: 0 / 414.8 MB, free: 3.297 MB / 318.1 MB Notification: Performance of matching and sorting (n=90): time 0.006217/0.4341, allocations: 2.949 MB / 417.7 MB, free: 224 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.4343, allocations: 163.2 kB / 417.9 MB, free: 24 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003298/0.4376, allocations: 2.143 MB / 420 MB, free: 13.86 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.211e-05/0.4377, allocations: 41.7 kB / 420.1 MB, free: 13.81 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001154/0.4388, allocations: 1.478 MB / 421.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002795/0.4391, allocations: 331.4 kB / 421.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.89e-05/0.4392, allocations: 40 kB / 421.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.4394, allocations: 373.8 kB / 422.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000667/0.44, allocations: 359.8 kB / 422.6 MB, free: 11.22 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001325/0.4414, allocations: 1.231 MB / 423.9 MB, free: 9.566 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009386/0.4423, allocations: 0.5728 MB / 424.4 MB, free: 8.996 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.221e-05/0.4423, allocations: 8 kB / 424.4 MB, free: 8.988 MB / 334.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.003226/0.4456, allocations: 1.835 MB / 426.3 MB, free: 7.133 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.005431/0.451, allocations: 12.29 MB / 438.6 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.067e-05/0.4511, allocations: 32 kB / 438.6 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006535/0.4517, allocations: 159.4 kB / 438.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001339/0.4531, allocations: 419.2 kB / 439.2 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004045/0.4572, allocations: 5.376 MB / 444.5 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00224/0.4594, allocations: 95.78 kB / 444.6 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001342/0.4596, allocations: 100.2 kB / 444.7 MB, free: 2.801 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.027e-05/0.4596, allocations: 4 kB / 444.7 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002688/0.4623, allocations: 1.574 MB / 446.3 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.215e-05/0.4623, allocations: 38.02 kB / 446.4 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004738/0.4628, allocations: 159.6 kB / 446.5 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.4639, allocations: 407.3 kB / 446.9 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003899/0.4678, allocations: 5.368 MB / 452.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002247/0.4701, allocations: 92.12 kB / 452.4 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001778/0.4703, allocations: 96 kB / 452.5 MB, free: 10.52 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * 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 (223): * Single equations (assignments): 219 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001476/0.4718, allocations: 0.5861 MB / 453 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000488/0.4723, allocations: 229.2 kB / 453.3 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001695/0.474, allocations: 0.9224 MB / 454.2 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.474, allocations: 8 kB / 454.2 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.862e-06/0.474, allocations: 4 kB / 454.2 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.474, allocations: 3.984 kB / 454.2 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005269/0.4793, allocations: 3.1 MB / 457.3 MB, free: 5.496 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.4793, allocations: 4 kB / 457.3 MB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006162/0.48, allocations: 168.5 kB / 457.5 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003963/0.4804, allocations: 123.4 kB / 457.6 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.568e-05/0.4804, allocations: 23.95 kB / 457.6 MB, free: 5.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004422/0.4849, allocations: 5.354 MB / 463 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/0.4849, allocations: 11.94 kB / 463 MB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002915/0.4878, allocations: 1.959 MB / 464.9 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001023/0.4888, allocations: 370.2 kB / 465.3 MB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002528/0.4891, allocations: 27.98 kB / 465.3 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009013/0.49, allocations: 64.03 kB / 465.4 MB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001581/0.4902, allocations: 84.36 kB / 465.5 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.62e-05/0.4902, allocations: 28 kB / 465.5 MB, free: 12.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002353/0.4926, allocations: 1.411 MB / 466.9 MB, free: 11.05 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4926, allocations: 0 / 466.9 MB, free: 11.05 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003799/0.4964, allocations: 0.9258 MB / 467.8 MB, free: 10.12 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.w,loadInertia1.phi,dcee.inertiaRotor.w,loadInertia2.phi,dcse.inertiaRotor.w,loadInertia3.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 (82): * Single equations (assignments): 78 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003964/0.5004, allocations: 4.039 MB / 471.9 MB, free: 5.883 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005144/0.5056, allocations: 2.691 MB / 474.6 MB, free: 3.105 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.21e-05/0.5056, allocations: 0 / 474.6 MB, free: 3.105 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001184/0.5068, allocations: 0.8316 MB / 475.4 MB, free: 2.219 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003293/0.5101, allocations: 0.5516 MB / 476 MB, free: 1.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03926/0.5494, allocations: 34.21 MB / 0.4982 GB, free: 13.72 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0021/0.5515, allocations: 1.625 MB / 0.4998 GB, free: 12.07 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002141/0.5537, allocations: 335.1 kB / 0.5001 GB, free: 11.74 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001873/0.5556, allocations: 1.054 MB / 0.5011 GB, free: 10.69 MB / 430.1 MB Notification: Performance of SimCode: time 1.483e-06/0.5556, allocations: 0 / 0.5011 GB, free: 10.69 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.352/0.9076, allocations: 45.65 MB / 0.5457 GB, free: 141.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001764/0.9078, allocations: 235.4 kB / 0.546 GB, free: 141 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.553/4.461, allocations: 2.672 kB / 0.546 GB, free: 141 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics_res.mat does not exist to compare? outputFormat=mat