Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00114/0.00114, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008643/0.0008643, allocations: 88.11 kB / 292.1 MB, free: 5.941 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.319e-05/3.329e-05, allocations: 4 kB / 350.6 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1018, allocations: 51.49 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3464/0.4482, allocations: 100.3 MB / 0.4907 GB, free: 5.453 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002185/0.4485, allocations: 76.95 kB / 0.4907 GB, free: 5.414 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07636/0.5249, allocations: 28.87 MB / 0.5189 GB, free: 9.816 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.617e-06/0.5249, allocations: 0 / 0.5189 GB, free: 9.816 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.301e-05/0.525, allocations: 27.94 kB / 0.519 GB, free: 9.789 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.00221/0.5272, allocations: 1.133 MB / 0.5201 GB, free: 8.617 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.5273, allocations: 16.02 kB / 0.5201 GB, free: 8.602 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002512/0.5275, allocations: 144.2 kB / 0.5202 GB, free: 8.453 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008/0.5283, allocations: 202.3 kB / 0.5204 GB, free: 8.254 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001675/0.53, allocations: 0.8088 MB / 0.5212 GB, free: 7.402 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.811e-05/0.5301, allocations: 78.61 kB / 0.5213 GB, free: 7.324 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001451/0.5303, allocations: 96 kB / 0.5214 GB, free: 7.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.5319, allocations: 0.8997 MB / 0.5223 GB, free: 6.305 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.883e-05/0.5319, allocations: 11.89 kB / 0.5223 GB, free: 6.293 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.004e-05/0.532, allocations: 40 kB / 0.5223 GB, free: 6.254 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.131e-05/0.532, allocations: 24 kB / 0.5223 GB, free: 6.23 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.5332, allocations: 0.6091 MB / 0.5229 GB, free: 5.617 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005429/0.5386, allocations: 3.936 MB / 0.5268 GB, free: 1.469 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006016/0.5392, allocations: 435.8 kB / 0.5272 GB, free: 1.016 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000474/0.5397, allocations: 248.8 kB / 0.5274 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.023e-05/0.5398, allocations: 8 kB / 0.5274 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.5398, allocations: 39.28 kB / 0.5275 GB, free: 0.7148 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 2.225e-06/0.5398, allocations: 0 / 0.5275 GB, free: 0.7148 MB / 394.7 MB Notification: Performance of matching and sorting (n=48): time 0.002203/0.542, allocations: 1.222 MB / 0.5287 GB, free: 15.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.72e-05/0.5421, allocations: 85.55 kB / 0.5287 GB, free: 15.33 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009321/0.543, allocations: 0.6997 MB / 0.5294 GB, free: 14.63 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.816e-05/0.5431, allocations: 33.7 kB / 0.5295 GB, free: 14.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003948/0.5435, allocations: 0.5643 MB / 0.53 GB, free: 14.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.5436, allocations: 177.5 kB / 0.5302 GB, free: 13.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.613e-05/0.5436, allocations: 12 kB / 0.5302 GB, free: 13.83 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.5438, allocations: 334 kB / 0.5305 GB, free: 13.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002694/0.5441, allocations: 161.6 kB / 0.5307 GB, free: 13.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004398/0.5445, allocations: 449.9 kB / 0.5311 GB, free: 12.76 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003809/0.5449, allocations: 237.5 kB / 0.5313 GB, free: 12.53 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.5449, allocations: 8 kB / 0.5313 GB, free: 12.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001236/0.5462, allocations: 0.7649 MB / 0.5321 GB, free: 11.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.5462, allocations: 12 kB / 0.5321 GB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.5462, allocations: 8 kB / 0.5321 GB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002839/0.5465, allocations: 93.97 kB / 0.5322 GB, free: 11.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005268/0.547, allocations: 167.7 kB / 0.5323 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002432/0.5495, allocations: 2.993 MB / 0.5353 GB, free: 8.211 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005993/0.5501, allocations: 35.98 kB / 0.5353 GB, free: 8.176 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.521e-05/0.5502, allocations: 40 kB / 0.5353 GB, free: 8.137 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001449/0.5503, allocations: 157.7 kB / 0.5355 GB, free: 7.977 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.5504, allocations: 94.83 kB / 0.5356 GB, free: 7.883 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008696/0.5513, allocations: 0.4908 MB / 0.5361 GB, free: 7.375 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.5513, allocations: 12.03 kB / 0.5361 GB, free: 7.363 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.5514, allocations: 0 / 0.5361 GB, free: 7.363 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/0.5514, allocations: 3.984 kB / 0.5361 GB, free: 7.359 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002173/0.5535, allocations: 1.447 MB / 0.5375 GB, free: 5.824 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.808e-06/0.5536, allocations: 0 / 0.5375 GB, free: 5.824 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003626/0.5539, allocations: 84.11 kB / 0.5376 GB, free: 5.742 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002261/0.5542, allocations: 81.67 kB / 0.5376 GB, free: 5.656 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.472e-05/0.5542, allocations: 12 kB / 0.5377 GB, free: 5.645 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002336/0.5566, allocations: 2.986 MB / 0.5406 GB, free: 2.387 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.5566, allocations: 4.062 kB / 0.5406 GB, free: 2.383 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/0.5578, allocations: 0.8757 MB / 0.5414 GB, free: 1.414 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003215/0.5581, allocations: 208 kB / 0.5416 GB, free: 1.191 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000121/0.5583, allocations: 11.75 kB / 0.5416 GB, free: 1.184 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004518/0.5587, allocations: 31.98 kB / 0.5417 GB, free: 1.152 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.45e-05/0.5588, allocations: 39.94 kB / 0.5417 GB, free: 1.113 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.874e-05/0.5589, allocations: 16 kB / 0.5417 GB, free: 1.098 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007285/0.5596, allocations: 0.5265 MB / 0.5422 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5596, allocations: 0 / 0.5422 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009759/0.5606, allocations: 252 kB / 0.5425 GB, free: 340 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00192/0.5625, allocations: 2.084 MB / 0.5445 GB, free: 14.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001115/0.5636, allocations: 0.6803 MB / 0.5452 GB, free: 13.47 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.5636, allocations: 0 / 0.5452 GB, free: 13.47 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006127/0.5643, allocations: 457.3 kB / 0.5456 GB, free: 13 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009917/0.5653, allocations: 207.8 kB / 0.5458 GB, free: 12.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003191/0.5685, allocations: 1.451 MB / 0.5472 GB, free: 11.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006374/0.5691, allocations: 1.036 MB / 0.5482 GB, free: 10.23 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005372/0.5697, allocations: 111.4 kB / 0.5483 GB, free: 10.12 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005346/0.5702, allocations: 387.3 kB / 0.5487 GB, free: 9.742 MB / 426.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5702, allocations: 0 / 0.5487 GB, free: 9.742 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04576/0.616, allocations: 20.95 MB / 0.5692 GB, free: 5.121 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002101/0.6163, allocations: 204.2 kB / 0.5694 GB, free: 4.883 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.462/3.078, allocations: 0 / 0.5694 GB, free: 4.883 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat