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/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.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/ModelicaServices trunk/package.mo): time 0.0008795/0.0008795, allocations: 93.86 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001016/0.001016, allocations: 192.9 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002341/0.0002341, allocations: 4 kB / 306.8 MB, free: 1.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.106, allocations: 51.5 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.007047/0.1131, allocations: 7.136 MB / 365.5 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003972/0.1171, allocations: 2.499 MB / 368 MB, free: 4.074 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006403/0.1178, allocations: 23.94 kB / 368 MB, free: 4.051 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001112/0.1189, allocations: 469.3 kB / 368.4 MB, free: 3.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009153/0.1198, allocations: 385.2 kB / 368.8 MB, free: 3.211 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003863/0.1202, allocations: 151.8 kB / 369 MB, free: 3.062 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001323/0.1216, allocations: 1.33 MB / 370.3 MB, free: 1.727 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006053/0.1222, allocations: 427.2 kB / 370.7 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006655/0.1229, allocations: 457.9 kB / 371.2 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004907/0.1234, allocations: 0.4938 MB / 371.7 MB, free: 356 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001001/0.1235, allocations: 64 kB / 371.7 MB, free: 292 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002431/0.1237, allocations: 104 kB / 371.8 MB, free: 188 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2121/0.3358, allocations: 192.5 kB / 372 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000631/0.3365, allocations: 259.9 kB / 372.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001797/0.3383, allocations: 1.344 MB / 373.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.3383, allocations: 0.7812 kB / 373.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3383, allocations: 4.219 kB / 373.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.812e-05/0.3383, allocations: 0.5 kB / 373.6 MB, free: 10.59 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001992/0.3403, allocations: 1.267 MB / 374.9 MB, free: 9.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.3404, allocations: 10.84 kB / 374.9 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001903/0.3406, allocations: 151.6 kB / 375 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006366/0.3412, allocations: 189.1 kB / 375.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00122/0.3425, allocations: 0.6985 MB / 375.9 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.141e-05/0.3426, allocations: 76.58 kB / 376 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001941/0.3428, allocations: 101.8 kB / 376.1 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001963/0.3447, allocations: 0.9307 MB / 377 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.415e-05/0.3448, allocations: 2.031 kB / 377 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.95e-05/0.3449, allocations: 42.66 kB / 377.1 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.924e-05/0.3449, allocations: 25.72 kB / 377.1 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001411/0.3463, allocations: 0.6393 MB / 377.7 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005672/0.352, allocations: 3.937 MB / 381.7 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007961/0.3528, allocations: 447.6 kB / 382.1 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005494/0.3534, allocations: 267.6 kB / 382.4 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.798e-05/0.3534, allocations: 5.266 kB / 382.4 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.3535, allocations: 37.31 kB / 382.4 MB, free: 7.398 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.585e-06/0.3535, allocations: 0 / 382.4 MB, free: 7.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.00272/0.3562, allocations: 1.412 MB / 383.8 MB, free: 6.805 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.3563, allocations: 82.52 kB / 383.9 MB, free: 6.711 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/0.3575, allocations: 0.821 MB / 384.7 MB, free: 6.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.081e-05/0.3575, allocations: 38.11 kB / 384.8 MB, free: 6.535 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003528/0.3579, allocations: 0.5512 MB / 385.3 MB, free: 6.254 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.358, allocations: 154.2 kB / 385.5 MB, free: 6.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.378e-05/0.358, allocations: 15 kB / 385.5 MB, free: 6.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.431e-05/0.3581, allocations: 336.7 kB / 385.8 MB, free: 5.852 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003347/0.3585, allocations: 169.1 kB / 386 MB, free: 5.848 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004392/0.3589, allocations: 463.8 kB / 386.4 MB, free: 5.484 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004051/0.3593, allocations: 245.3 kB / 386.7 MB, free: 5.469 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.3593, allocations: 2.156 kB / 386.7 MB, free: 5.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001273/0.3606, allocations: 0.7735 MB / 387.4 MB, free: 5.352 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.3606, allocations: 11.25 kB / 387.4 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.3607, allocations: 11.55 kB / 387.5 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002692/0.3609, allocations: 79.22 kB / 387.5 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000478/0.3614, allocations: 156.2 kB / 387.7 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001721/0.3632, allocations: 2.878 MB / 390.6 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006731/0.3639, allocations: 35.39 kB / 390.6 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.802e-05/0.3639, allocations: 33.47 kB / 390.6 MB, free: 2.73 MB / 302.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004537/0.3644, allocations: 268.4 kB / 390.9 MB, free: 2.605 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.3645, allocations: 84.91 kB / 391 MB, free: 2.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008862/0.3654, allocations: 0.4908 MB / 391.5 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.3654, allocations: 5.562 kB / 391.5 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.3654, allocations: 1.281 kB / 391.5 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.3654, allocations: 0 / 391.5 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001999/0.3674, allocations: 1.444 MB / 392.9 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.3674, allocations: 3.625 kB / 392.9 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002926/0.3677, allocations: 70.11 kB / 393 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001891/0.3679, allocations: 75.05 kB / 393.1 MB, free: 1.535 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.63e-05/0.368, allocations: 8.156 kB / 393.1 MB, free: 1.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001863/0.3698, allocations: 2.865 MB / 395.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/0.3699, allocations: 1.875 kB / 395.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.3711, allocations: 0.775 MB / 396.7 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000321/0.3715, allocations: 199.6 kB / 396.9 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.3716, allocations: 20.8 kB / 396.9 MB, free: 14.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004087/0.372, allocations: 32.31 kB / 397 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.164e-05/0.3721, allocations: 32.52 kB / 397 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-05/0.3721, allocations: 14.16 kB / 397 MB, free: 14.08 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009584/0.3731, allocations: 0.5574 MB / 397.6 MB, free: 13.75 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3731, allocations: 0 / 397.6 MB, free: 13.75 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009946/0.3741, allocations: 204.9 kB / 397.8 MB, free: 13.73 MB / 318.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001797/0.3759, allocations: 1.35 MB / 399.1 MB, free: 12.69 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001308/0.3772, allocations: 0.6987 MB / 399.8 MB, free: 12.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.062e-06/0.3772, allocations: 5.438 kB / 399.8 MB, free: 12.27 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006851/0.3779, allocations: 447.9 kB / 400.3 MB, free: 11.95 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/0.3792, allocations: 214.8 kB / 400.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01114/0.3903, allocations: 5.231 MB / 405.7 MB, free: 8.297 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008001/0.3912, allocations: 1.008 MB / 406.7 MB, free: 7.457 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005723/0.3918, allocations: 102 kB / 406.8 MB, free: 7.402 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005161/0.3923, allocations: 376.7 kB / 407.2 MB, free: 7.082 MB / 318.1 MB Notification: Performance of SimCode: time 1.302e-06/0.3923, allocations: 0 / 407.2 MB, free: 7.082 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03801/0.4303, allocations: 17.54 MB / 424.7 MB, free: 6.793 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002205/0.4306, allocations: 223.8 kB / 424.9 MB, free: 6.547 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.436/2.867, allocations: 0 / 424.9 MB, free: 6.547 MB / 334.1 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