Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001502/0.001502, allocations: 196.4 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.528/1.528, allocations: 225.4 MB / 240.1 MB, free: 15.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001036/0.001036, allocations: 89 kB / 292.1 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.31e-05/3.312e-05, allocations: 4 kB / 350.7 MB, free: 2.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.105, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.325/0.4301, allocations: 99.39 MB / 0.4898 GB, free: 6.359 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.4304, allocations: 88.06 kB / 0.4899 GB, free: 6.312 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07327/0.5037, allocations: 28.3 MB / 0.5175 GB, free: 11.3 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.5037, allocations: 0 / 0.5175 GB, free: 11.3 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.378e-05/0.5038, allocations: 24 kB / 0.5175 GB, free: 11.28 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001859/0.5056, allocations: 1.117 MB / 0.5186 GB, free: 10.12 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.5057, allocations: 8.031 kB / 0.5186 GB, free: 10.11 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000176/0.5059, allocations: 154.7 kB / 0.5188 GB, free: 9.957 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006296/0.5065, allocations: 190.4 kB / 0.5189 GB, free: 9.77 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001385/0.5079, allocations: 0.7808 MB / 0.5197 GB, free: 8.941 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.726e-05/0.508, allocations: 77.95 kB / 0.5198 GB, free: 8.867 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/0.5081, allocations: 103.9 kB / 0.5199 GB, free: 8.766 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001503/0.5096, allocations: 0.8964 MB / 0.5208 GB, free: 7.84 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.869e-05/0.5097, allocations: 0 / 0.5208 GB, free: 7.84 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.976e-05/0.5097, allocations: 44 kB / 0.5208 GB, free: 7.797 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.175e-05/0.5098, allocations: 24 kB / 0.5208 GB, free: 7.773 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.5108, allocations: 0.5858 MB / 0.5214 GB, free: 7.188 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005226/0.5161, allocations: 3.92 MB / 0.5252 GB, free: 3.051 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006778/0.5168, allocations: 437.4 kB / 0.5256 GB, free: 2.598 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000474/0.5173, allocations: 240.8 kB / 0.5259 GB, free: 2.359 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.571e-05/0.5173, allocations: 4 kB / 0.5259 GB, free: 2.355 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.5173, allocations: 42.56 kB / 0.5259 GB, free: 2.305 MB / 394.7 MB Notification: Performance of pre-optimization done (n=42): time 2.484e-06/0.5174, allocations: 0 / 0.5259 GB, free: 2.305 MB / 394.7 MB Notification: Performance of matching and sorting (n=47): time 0.00221/0.5196, allocations: 1.201 MB / 0.5271 GB, free: 1.047 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.993e-05/0.5196, allocations: 81.55 kB / 0.5272 GB, free: 0.9492 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000934/0.5206, allocations: 0.6841 MB / 0.5278 GB, free: 268 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.574e-05/0.5206, allocations: 37.7 kB / 0.5279 GB, free: 224 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000417/0.5211, allocations: 0.5487 MB / 0.5284 GB, free: 15.66 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001314/0.5212, allocations: 173.5 kB / 0.5286 GB, free: 15.49 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.6e-05/0.5212, allocations: 12 kB / 0.5286 GB, free: 15.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.5213, allocations: 341.9 kB / 0.5289 GB, free: 15.14 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002468/0.5216, allocations: 157.6 kB / 0.5291 GB, free: 14.98 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004232/0.522, allocations: 442 kB / 0.5295 GB, free: 14.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003562/0.5224, allocations: 225.5 kB / 0.5297 GB, free: 14.19 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.122e-06/0.5224, allocations: 5.594 kB / 0.5297 GB, free: 14.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001201/0.5236, allocations: 0.7624 MB / 0.5304 GB, free: 13.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.082e-05/0.5237, allocations: 12 kB / 0.5305 GB, free: 13.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/0.5237, allocations: 8 kB / 0.5305 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003042/0.524, allocations: 93.92 kB / 0.5306 GB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005477/0.5245, allocations: 159.8 kB / 0.5307 GB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002625/0.5272, allocations: 2.997 MB / 0.5336 GB, free: 9.879 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007274/0.5279, allocations: 35.98 kB / 0.5337 GB, free: 9.844 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.379e-05/0.528, allocations: 32 kB / 0.5337 GB, free: 9.812 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 (85): * Single equations (assignments): 83 * 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.0001858/0.5282, allocations: 157.7 kB / 0.5338 GB, free: 9.652 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001356/0.5283, allocations: 82.97 kB / 0.5339 GB, free: 9.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009552/0.5293, allocations: 0.4906 MB / 0.5344 GB, free: 9.066 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.5293, allocations: 8 kB / 0.5344 GB, free: 9.059 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.5293, allocations: 4 kB / 0.5344 GB, free: 9.055 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.5293, allocations: 3.984 kB / 0.5344 GB, free: 9.051 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002158/0.5315, allocations: 1.429 MB / 0.5358 GB, free: 7.539 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.5315, allocations: 4 kB / 0.5358 GB, free: 7.535 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003268/0.5319, allocations: 80.12 kB / 0.5359 GB, free: 7.457 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002375/0.5321, allocations: 77.67 kB / 0.536 GB, free: 7.375 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.8e-05/0.5321, allocations: 12 kB / 0.536 GB, free: 7.363 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002384/0.5345, allocations: 2.974 MB / 0.5389 GB, free: 4.121 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/0.5346, allocations: 7.969 kB / 0.5389 GB, free: 4.113 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/0.5357, allocations: 0.844 MB / 0.5397 GB, free: 3.176 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003271/0.5361, allocations: 200 kB / 0.5399 GB, free: 2.961 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.85e-05/0.5362, allocations: 15.98 kB / 0.5399 GB, free: 2.945 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004301/0.5366, allocations: 27.98 kB / 0.5399 GB, free: 2.918 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.059e-05/0.5367, allocations: 43.89 kB / 0.54 GB, free: 2.875 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.123e-05/0.5367, allocations: 12.06 kB / 0.54 GB, free: 2.863 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007178/0.5374, allocations: 0.5226 MB / 0.5405 GB, free: 2.344 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5375, allocations: 0 / 0.5405 GB, free: 2.344 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009362/0.5384, allocations: 251.9 kB / 0.5408 GB, free: 2.098 MB / 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 (39): * Single equations (assignments): 37 * 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.001977/0.5404, allocations: 2.065 MB / 0.5428 GB, free: 15.96 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001125/0.5415, allocations: 0.6753 MB / 0.5434 GB, free: 15.26 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.5415, allocations: 0 / 0.5434 GB, free: 15.26 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005856/0.5421, allocations: 448.7 kB / 0.5439 GB, free: 14.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.5432, allocations: 209.2 kB / 0.5441 GB, free: 14.61 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002917/0.5461, allocations: 1.416 MB / 0.5454 GB, free: 13.14 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006346/0.5467, allocations: 1.036 MB / 0.5465 GB, free: 12.07 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004585/0.5472, allocations: 106.2 kB / 0.5466 GB, free: 11.97 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00044/0.5477, allocations: 379.2 kB / 0.5469 GB, free: 11.6 MB / 426.7 MB Notification: Performance of SimCode: time 5.41e-07/0.5477, allocations: 4 kB / 0.5469 GB, free: 11.59 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03995/0.5876, allocations: 20.64 MB / 0.5671 GB, free: 7.242 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001943/0.5879, allocations: 188.4 kB / 0.5672 GB, free: 7.016 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.719/3.307, allocations: 0 / 0.5672 GB, free: 7.016 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat does not exist to compare? outputFormat=mat