Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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.DCEE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_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.001081/0.001081, allocations: 96.23 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001306/0.001306, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002622/0.0002623, allocations: 8 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1078, allocations: 51.5 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.008116/0.116, allocations: 6.412 MB / 364.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004852/0.1209, allocations: 2.508 MB / 367.1 MB, free: 4.816 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008557/0.1218, allocations: 27.94 kB / 367.2 MB, free: 4.789 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001377/0.1232, allocations: 461.8 kB / 367.6 MB, free: 4.336 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001429/0.1246, allocations: 466.7 kB / 368.1 MB, free: 3.879 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005005/0.1251, allocations: 155.8 kB / 368.2 MB, free: 3.727 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001949/0.1271, allocations: 1.007 MB / 369.2 MB, free: 2.719 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007019/0.1278, allocations: 427.2 kB / 369.6 MB, free: 2.285 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005574/0.1284, allocations: 426.2 kB / 370.1 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005001/0.1289, allocations: 461.8 kB / 370.5 MB, free: 1.414 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.577e-05/0.129, allocations: 60 kB / 370.6 MB, free: 1.355 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002645/0.1293, allocations: 107.9 kB / 370.7 MB, free: 1.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000142/0.1294, allocations: 171.2 kB / 370.8 MB, free: 1.082 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002164/0.1296, allocations: 253.1 kB / 371.1 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2041/0.3338, allocations: 1.281 MB / 372.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3338, allocations: 0 / 372.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.3338, allocations: 1.5 kB / 372.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.897e-05/0.3339, allocations: 0.875 kB / 372.4 MB, free: 10.91 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002309/0.3362, allocations: 1.233 MB / 373.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.3363, allocations: 8.25 kB / 373.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001938/0.3365, allocations: 149.7 kB / 373.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005758/0.337, allocations: 156.7 kB / 373.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.3383, allocations: 0.6835 MB / 374.6 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.919e-05/0.3384, allocations: 78.42 kB / 374.7 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/0.3385, allocations: 98.91 kB / 374.8 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001923/0.3405, allocations: 0.9153 MB / 375.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.344e-05/0.3405, allocations: 5.719 kB / 375.7 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.304e-05/0.3406, allocations: 41.72 kB / 375.7 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.2e-05/0.3406, allocations: 23.47 kB / 375.7 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001382/0.342, allocations: 0.6307 MB / 376.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004767/0.3468, allocations: 3.88 MB / 380.3 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005304/0.3473, allocations: 357.7 kB / 380.6 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.036e-05/0.3474, allocations: 8.312 kB / 380.6 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.108e-05/0.3474, allocations: 40.03 kB / 380.7 MB, free: 7.707 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.824e-06/0.3474, allocations: 0 / 380.7 MB, free: 7.707 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002329/0.3498, allocations: 1.22 MB / 381.9 MB, free: 7.125 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/0.3498, allocations: 82.02 kB / 382 MB, free: 7.031 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/0.3509, allocations: 0.7625 MB / 382.7 MB, free: 6.895 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/0.3509, allocations: 30.61 kB / 382.7 MB, free: 6.863 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003546/0.3512, allocations: 0.5698 MB / 383.3 MB, free: 6.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.619e-05/0.3513, allocations: 129.7 kB / 383.4 MB, free: 6.492 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.965e-05/0.3514, allocations: 13.44 kB / 383.5 MB, free: 6.492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.744e-05/0.3514, allocations: 333.1 kB / 383.8 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003065/0.3518, allocations: 149.1 kB / 383.9 MB, free: 6.184 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004142/0.3522, allocations: 459.6 kB / 384.4 MB, free: 5.789 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003943/0.3526, allocations: 234.3 kB / 384.6 MB, free: 5.773 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.3526, allocations: 3.781 kB / 384.6 MB, free: 5.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001194/0.3538, allocations: 0.6977 MB / 385.3 MB, free: 5.668 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.3538, allocations: 9.906 kB / 385.3 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/0.3538, allocations: 10.75 kB / 385.3 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001626/0.354, allocations: 39.72 kB / 385.4 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000504/0.3545, allocations: 163 kB / 385.5 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007272/0.3553, allocations: 1.297 MB / 386.8 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005263/0.3558, allocations: 42.06 kB / 386.9 MB, free: 4.398 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.463e-05/0.3559, allocations: 34.47 kB / 386.9 MB, free: 4.398 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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): 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003705/0.3562, allocations: 261.6 kB / 387.2 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.3563, allocations: 88.36 kB / 387.2 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007446/0.3571, allocations: 388.1 kB / 387.6 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.3571, allocations: 3.844 kB / 387.6 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3571, allocations: 1.25 kB / 387.6 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3571, allocations: 1.922 kB / 387.6 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.359, allocations: 1.246 MB / 388.9 MB, free: 3.773 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.359, allocations: 5.281 kB / 388.9 MB, free: 3.773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003249/0.3593, allocations: 72.23 kB / 388.9 MB, free: 3.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.989e-05/0.3594, allocations: 26.31 kB / 389 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.3595, allocations: 11.56 kB / 389 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006682/0.3601, allocations: 1.281 MB / 390.3 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.3602, allocations: 1.891 kB / 390.3 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.3613, allocations: 0.7374 MB / 391 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002377/0.3616, allocations: 177.3 kB / 391.2 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.893e-05/0.3617, allocations: 12.53 kB / 391.2 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003325/0.362, allocations: 30.42 kB / 391.2 MB, free: 1.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.816e-05/0.3621, allocations: 29.67 kB / 391.2 MB, free: 1.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.136e-05/0.3621, allocations: 8.438 kB / 391.3 MB, free: 1.977 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007125/0.3628, allocations: 0.512 MB / 391.8 MB, free: 1.883 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.3629, allocations: 0 / 391.8 MB, free: 1.883 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008505/0.3637, allocations: 187.6 kB / 392 MB, free: 1.879 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.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 (34): * Single equations (assignments): 33 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001285/0.365, allocations: 1.778 MB / 393.7 MB, free: 424 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.366, allocations: 0.5172 MB / 394.2 MB, free: 208 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3661, allocations: 0.9688 kB / 394.2 MB, free: 208 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003923/0.3665, allocations: 274.7 kB / 394.5 MB, free: 52 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009409/0.3674, allocations: 195.6 kB / 394.7 MB, free: 0 / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01076/0.3782, allocations: 11.72 MB / 406.4 MB, free: 6.211 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006862/0.3789, allocations: 1.02 MB / 407.4 MB, free: 5.359 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004757/0.3794, allocations: 99.81 kB / 407.5 MB, free: 5.305 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004008/0.3798, allocations: 368.8 kB / 407.9 MB, free: 4.988 MB / 318.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3798, allocations: 0 / 407.9 MB, free: 4.988 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03147/0.4113, allocations: 15.86 MB / 423.8 MB, free: 7.77 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001765/0.4115, allocations: 222.4 kB / 424 MB, free: 7.527 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.235/2.647, allocations: 0 / 424 MB, free: 7.527 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat does not exist to compare? outputFormat=mat