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.001259/0.00126, allocations: 101.5 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001818/0.001818, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.3 MB / 245.9 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002383/0.0002383, allocations: 4 kB / 306.7 MB, free: 1.305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1037, allocations: 51.5 MB / 358.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.007075/0.1109, allocations: 6.49 MB / 364.7 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004165/0.1151, allocations: 2.547 MB / 367.2 MB, free: 4.734 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006142/0.1157, allocations: 19.94 kB / 367.3 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001236/0.117, allocations: 477.7 kB / 367.7 MB, free: 4.246 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001097/0.1181, allocations: 486.6 kB / 368.2 MB, free: 3.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000389/0.1185, allocations: 147.8 kB / 368.4 MB, free: 3.625 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001304/0.1198, allocations: 1.045 MB / 369.4 MB, free: 2.578 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005981/0.1204, allocations: 415.2 kB / 369.8 MB, free: 2.156 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004688/0.1209, allocations: 438.2 kB / 370.2 MB, free: 1.727 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005093/0.1214, allocations: 481.8 kB / 370.7 MB, free: 1.254 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.272e-05/0.1215, allocations: 60 kB / 370.8 MB, free: 1.195 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002595/0.1217, allocations: 99.97 kB / 370.9 MB, free: 1.098 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00015/0.1219, allocations: 179.2 kB / 371 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002145/0.1221, allocations: 257.1 kB / 371.3 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2197/0.3418, allocations: 1.298 MB / 372.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3418, allocations: 0.5625 kB / 372.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.3419, allocations: 0.5938 kB / 372.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.267e-05/0.3419, allocations: 0 / 372.6 MB, free: 10.55 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.002577/0.3445, allocations: 1.258 MB / 373.8 MB, free: 9.809 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.088e-05/0.3446, allocations: 9.094 kB / 373.8 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002152/0.3448, allocations: 152.3 kB / 374 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006068/0.3454, allocations: 169.9 kB / 374.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001239/0.3467, allocations: 0.6998 MB / 374.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.586e-05/0.3468, allocations: 81.12 kB / 374.9 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001556/0.3469, allocations: 102.2 kB / 375 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001738/0.3487, allocations: 0.9199 MB / 376 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.741e-05/0.3487, allocations: 4.578 kB / 376 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001142/0.3488, allocations: 40.78 kB / 376 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.558e-05/0.3489, allocations: 23.41 kB / 376 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001447/0.3503, allocations: 0.6368 MB / 376.7 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005094/0.3554, allocations: 3.895 MB / 380.6 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006711/0.3561, allocations: 441.5 kB / 381 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.276e-05/0.3562, allocations: 5.078 kB / 381 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.3562, allocations: 41.17 kB / 381 MB, free: 7.395 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.184e-06/0.3562, allocations: 3.719 kB / 381 MB, free: 7.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002467/0.3587, allocations: 1.379 MB / 382.4 MB, free: 6.801 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.3587, allocations: 86.25 kB / 382.5 MB, free: 6.707 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009398/0.3597, allocations: 0.7634 MB / 383.3 MB, free: 6.566 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.098e-05/0.3597, allocations: 34.61 kB / 383.3 MB, free: 6.535 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003623/0.3601, allocations: 0.561 MB / 383.9 MB, free: 6.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.3602, allocations: 159.3 kB / 384 MB, free: 6.156 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.57e-05/0.3602, allocations: 13.28 kB / 384 MB, free: 6.156 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.3603, allocations: 334.1 kB / 384.4 MB, free: 5.852 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003459/0.3607, allocations: 167.4 kB / 384.5 MB, free: 5.844 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004995/0.3612, allocations: 452.6 kB / 385 MB, free: 5.484 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004331/0.3616, allocations: 238.5 kB / 385.2 MB, free: 5.469 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.3617, allocations: 5.688 kB / 385.2 MB, free: 5.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001269/0.3629, allocations: 0.7484 MB / 385.9 MB, free: 5.355 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.363, allocations: 9.531 kB / 386 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.537e-05/0.363, allocations: 9.688 kB / 386 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002309/0.3632, allocations: 74.58 kB / 386 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005157/0.3638, allocations: 163.8 kB / 386.2 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001669/0.3654, allocations: 2.802 MB / 389 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005351/0.366, allocations: 40.19 kB / 389 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-05/0.366, allocations: 32.38 kB / 389.1 MB, free: 2.734 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 (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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000395/0.3664, allocations: 262.4 kB / 389.3 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.3666, allocations: 93.47 kB / 389.4 MB, free: 2.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008702/0.3674, allocations: 468.8 kB / 389.9 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.3675, allocations: 11.98 kB / 389.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3675, allocations: 1.219 kB / 389.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.3675, allocations: 4.078 kB / 389.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00212/0.3696, allocations: 1.384 MB / 391.3 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.3696, allocations: 5.625 kB / 391.3 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002981/0.3699, allocations: 73.5 kB / 391.4 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001541/0.3701, allocations: 60.19 kB / 391.4 MB, free: 2.062 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.925e-05/0.3701, allocations: 15.25 kB / 391.4 MB, free: 2.062 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001602/0.3717, allocations: 2.784 MB / 394.2 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.3718, allocations: 5.344 kB / 394.2 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001283/0.373, allocations: 0.8425 MB / 395.1 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002783/0.3733, allocations: 188.2 kB / 395.2 MB, free: 14.85 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.507e-05/0.3734, allocations: 12.06 kB / 395.3 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003718/0.3738, allocations: 36.69 kB / 395.3 MB, free: 14.83 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.436e-05/0.3739, allocations: 30.25 kB / 395.3 MB, free: 14.83 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.972e-05/0.374, allocations: 14.19 kB / 395.3 MB, free: 14.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007241/0.3747, allocations: 0.513 MB / 395.9 MB, free: 14.6 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3747, allocations: 0 / 395.9 MB, free: 14.6 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000943/0.3756, allocations: 204.3 kB / 396.1 MB, free: 14.57 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 (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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001822/0.3775, allocations: 1.887 MB / 397.9 MB, free: 13.01 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.3787, allocations: 0.6929 MB / 398.6 MB, free: 12.65 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3787, allocations: 3.172 kB / 398.6 MB, free: 12.65 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006272/0.3794, allocations: 439.7 kB / 399.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00101/0.3804, allocations: 210.7 kB / 399.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/0.3918, allocations: 11.37 MB / 410.6 MB, free: 2.641 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006737/0.3925, allocations: 1.026 MB / 411.7 MB, free: 1.785 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000616/0.3932, allocations: 104.9 kB / 411.8 MB, free: 1.727 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004436/0.3936, allocations: 369.8 kB / 412.1 MB, free: 1.41 MB / 318.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3936, allocations: 0 / 412.1 MB, free: 1.41 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03678/0.4304, allocations: 16.87 MB / 429 MB, free: 2.355 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000205/0.4307, allocations: 219.8 kB / 429.2 MB, free: 2.117 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.199/2.63, allocations: 0 / 429.2 MB, free: 2.117 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