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/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.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/Complex trunk/package.mo): time 0.001148/0.001148, allocations: 198.5 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.2 MB / 245 MB, free: 7.621 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008353/0.0008352, allocations: 103.7 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002136/0.0002136, allocations: 8 kB / 358 MB, free: 9.438 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1979/0.1982, allocations: 51.48 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.111/0.3092, allocations: 96.8 MB / 0.4944 GB, free: 9.773 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.3095, allocations: 83.95 kB / 0.4945 GB, free: 9.691 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2755/0.5851, allocations: 44.74 MB / 0.5382 GB, free: 72.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.5851, allocations: 3.938 kB / 0.5382 GB, free: 72.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001191/0.5852, allocations: 32 kB / 0.5383 GB, free: 72.83 MB / 378.7 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.003805/0.589, allocations: 1.837 MB / 0.54 GB, free: 70.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.5891, allocations: 8.031 kB / 0.5401 GB, free: 70.93 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004982/0.5896, allocations: 223.9 kB / 0.5403 GB, free: 70.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001108/0.5907, allocations: 289.4 kB / 0.5405 GB, free: 70.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002525/0.5932, allocations: 1.208 MB / 0.5417 GB, free: 69.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.984e-05/0.5933, allocations: 115.1 kB / 0.5418 GB, free: 69.03 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002696/0.5936, allocations: 159.8 kB / 0.542 GB, free: 68.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002517/0.5961, allocations: 1.489 MB / 0.5434 GB, free: 67.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.419e-05/0.5962, allocations: 15.92 kB / 0.5435 GB, free: 67.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001176/0.5963, allocations: 67.95 kB / 0.5435 GB, free: 67.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/0.5964, allocations: 36 kB / 0.5436 GB, free: 67.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001912/0.5983, allocations: 1.069 MB / 0.5446 GB, free: 66.13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007436/0.6057, allocations: 6.411 MB / 0.5509 GB, free: 59.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001409/0.6072, allocations: 0.6315 MB / 0.5515 GB, free: 58.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.332e-05/0.6072, allocations: 12.7 kB / 0.5515 GB, free: 58.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.008e-05/0.6073, allocations: 43.12 kB / 0.5515 GB, free: 58.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 2.124e-06/0.6073, allocations: 0 / 0.5515 GB, free: 58.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.004764/0.612, allocations: 2.482 MB / 0.554 GB, free: 56.12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/0.6121, allocations: 111.5 kB / 0.5541 GB, free: 55.99 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001455/0.6136, allocations: 1.103 MB / 0.5551 GB, free: 54.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.147e-05/0.6136, allocations: 37.7 kB / 0.5552 GB, free: 54.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003878/0.614, allocations: 0.8683 MB / 0.556 GB, free: 53.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.6142, allocations: 256.4 kB / 0.5563 GB, free: 53.71 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.634e-05/0.6142, allocations: 24 kB / 0.5563 GB, free: 53.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.491e-05/0.6143, allocations: 349.9 kB / 0.5566 GB, free: 53.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005236/0.6148, allocations: 298.5 kB / 0.5569 GB, free: 53.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006735/0.6155, allocations: 0.7373 MB / 0.5576 GB, free: 52.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006182/0.6161, allocations: 419 kB / 0.558 GB, free: 51.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.6161, allocations: 4 kB / 0.558 GB, free: 51.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002008/0.6182, allocations: 1.315 MB / 0.5593 GB, free: 50.35 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.6182, allocations: 12 kB / 0.5593 GB, free: 50.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.821e-05/0.6182, allocations: 16 kB / 0.5593 GB, free: 50.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004407/0.6187, allocations: 150.8 kB / 0.5595 GB, free: 50.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007714/0.6194, allocations: 267.5 kB / 0.5597 GB, free: 49.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00262/0.6221, allocations: 4.336 MB / 0.564 GB, free: 45.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.6231, allocations: 67.94 kB / 0.564 GB, free: 45.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.157e-05/0.6232, allocations: 52 kB / 0.5641 GB, free: 45.04 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (139): * Single equations (assignments): 136 * 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.0005843/0.6238, allocations: 355.5 kB / 0.5644 GB, free: 44.69 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002039/0.624, allocations: 142.3 kB / 0.5646 GB, free: 44.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001564/0.6256, allocations: 0.8803 MB / 0.5654 GB, free: 43.65 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.6256, allocations: 8 kB / 0.5654 GB, free: 43.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.6256, allocations: 0 / 0.5654 GB, free: 43.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.6256, allocations: 3.984 kB / 0.5654 GB, free: 43.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003425/0.629, allocations: 2.36 MB / 0.5677 GB, free: 41.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.6291, allocations: 4 kB / 0.5677 GB, free: 41.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005594/0.6296, allocations: 131.8 kB / 0.5679 GB, free: 41.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004161/0.63, allocations: 147.1 kB / 0.568 GB, free: 40.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.09e-05/0.6301, allocations: 16 kB / 0.568 GB, free: 40.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002823/0.6329, allocations: 4.493 MB / 0.5724 GB, free: 35.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.633, allocations: 7.953 kB / 0.5724 GB, free: 35.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001952/0.6349, allocations: 1.553 MB / 0.5739 GB, free: 34.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004828/0.6354, allocations: 275.4 kB / 0.5742 GB, free: 33.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002057/0.6356, allocations: 23.98 kB / 0.5742 GB, free: 33.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006724/0.6363, allocations: 43.97 kB / 0.5743 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.6364, allocations: 64.38 kB / 0.5743 GB, free: 33.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.513e-05/0.6365, allocations: 24 kB / 0.5743 GB, free: 33.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001025/0.6375, allocations: 0.8351 MB / 0.5752 GB, free: 32.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6375, allocations: 0 / 0.5752 GB, free: 32.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00124/0.6388, allocations: 375.9 kB / 0.5755 GB, free: 32.58 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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.00258/0.6413, allocations: 3.314 MB / 0.5788 GB, free: 29.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.643, allocations: 1.151 MB / 0.5799 GB, free: 27.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.643, allocations: 0 / 0.5799 GB, free: 27.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008314/0.6438, allocations: 0.7161 MB / 0.5806 GB, free: 27.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001359/0.6452, allocations: 332.3 kB / 0.5809 GB, free: 26.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01454/0.6598, allocations: 18.79 MB / 0.5993 GB, free: 7.395 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006678/0.6605, allocations: 1.245 MB / 0.6005 GB, free: 6.117 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008121/0.6613, allocations: 179.7 kB / 0.6006 GB, free: 5.938 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006605/0.662, allocations: 0.6203 MB / 0.6012 GB, free: 5.32 MB / 378.7 MB Notification: Performance of SimCode: time 1.132e-06/0.662, allocations: 0 / 0.6012 GB, free: 5.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05603/0.718, allocations: 32.41 MB / 0.6329 GB, free: 5.246 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001921/0.7183, allocations: 221.2 kB / 0.6331 GB, free: 5.012 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.774/3.492, allocations: 7.375 kB / 0.6331 GB, free: 5.008 MB / 410.7 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