Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001129/0.001129, allocations: 101.6 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.001353/0.001354, 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.398/1.398, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002444/0.0002447, allocations: 4 kB / 306.7 MB, free: 1.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1143, allocations: 51.5 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007623/0.1219, allocations: 6.599 MB / 364.8 MB, free: 7.156 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004617/0.1266, allocations: 2.621 MB / 367.4 MB, free: 4.531 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006947/0.1273, allocations: 23.94 kB / 367.5 MB, free: 4.508 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00125/0.1286, allocations: 477.7 kB / 367.9 MB, free: 4.039 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001131/0.1297, allocations: 494.6 kB / 368.4 MB, free: 3.555 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004098/0.1301, allocations: 167.8 kB / 368.6 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00138/0.1315, allocations: 1.057 MB / 369.6 MB, free: 2.332 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005715/0.1321, allocations: 431.3 kB / 370 MB, free: 1.895 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004622/0.1326, allocations: 446.2 kB / 370.5 MB, free: 1.457 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004837/0.1331, allocations: 489.8 kB / 371 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.512e-05/0.1332, allocations: 60 kB / 371 MB, free: 0.918 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002552/0.1334, allocations: 104 kB / 371.1 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.1336, allocations: 183.2 kB / 371.3 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001941/0.1338, allocations: 269 kB / 371.6 MB, free: 376 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2037/0.3375, allocations: 1.33 MB / 372.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3376, allocations: 0 / 372.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.677e-06/0.3376, allocations: 3.453 kB / 372.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.01e-05/0.3376, allocations: 0 / 372.9 MB, free: 10.88 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002235/0.3399, allocations: 1.273 MB / 374.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.3399, allocations: 9.062 kB / 374.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002101/0.3401, allocations: 148.6 kB / 374.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000687/0.3408, allocations: 192.6 kB / 374.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.3421, allocations: 0.7111 MB / 375.2 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.313e-05/0.3422, allocations: 78.98 kB / 375.3 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001801/0.3424, allocations: 101.2 kB / 375.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001998/0.3444, allocations: 0.937 MB / 376.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.746e-05/0.3444, allocations: 2.984 kB / 376.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.609e-05/0.3445, allocations: 43.5 kB / 376.4 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.949e-05/0.3446, allocations: 28.69 kB / 376.4 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001372/0.346, allocations: 0.6562 MB / 377.1 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005648/0.3516, allocations: 3.921 MB / 381 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007329/0.3524, allocations: 445.7 kB / 381.4 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.858e-05/0.3524, allocations: 5.703 kB / 381.4 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.3525, allocations: 41.69 kB / 381.5 MB, free: 7.703 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 3.787e-06/0.3525, allocations: 0.7969 kB / 381.5 MB, free: 7.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002765/0.3553, allocations: 1.445 MB / 382.9 MB, free: 7.098 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.3553, allocations: 81.44 kB / 383 MB, free: 7.004 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001008/0.3563, allocations: 0.7814 MB / 383.8 MB, free: 6.863 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.417e-05/0.3564, allocations: 32.02 kB / 383.8 MB, free: 6.832 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003667/0.3567, allocations: 0.5686 MB / 384.4 MB, free: 6.547 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.3569, allocations: 161.2 kB / 384.5 MB, free: 6.449 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.633e-05/0.3569, allocations: 18.94 kB / 384.5 MB, free: 6.445 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.511e-05/0.357, allocations: 335.4 kB / 384.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003442/0.3573, allocations: 172.8 kB / 385 MB, free: 6.137 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004909/0.3578, allocations: 470.2 kB / 385.5 MB, free: 5.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004677/0.3583, allocations: 252.9 kB / 385.8 MB, free: 5.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.3583, allocations: 3.25 kB / 385.8 MB, free: 5.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001284/0.3596, allocations: 0.7719 MB / 386.5 MB, free: 5.637 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.3596, allocations: 10.23 kB / 386.5 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.3597, allocations: 10.06 kB / 386.5 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002357/0.3599, allocations: 76.66 kB / 386.6 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000553/0.3605, allocations: 164.7 kB / 386.8 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001635/0.3621, allocations: 2.806 MB / 389.6 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007311/0.3629, allocations: 41.45 kB / 389.6 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.932e-05/0.3629, allocations: 39.69 kB / 389.7 MB, free: 3.012 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 (86): * Single equations (assignments): 84 * 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.0005095/0.3634, allocations: 265.1 kB / 389.9 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.3636, allocations: 85.56 kB / 390 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009769/0.3645, allocations: 0.4926 MB / 390.5 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.3646, allocations: 4.594 kB / 390.5 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3646, allocations: 1 kB / 390.5 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.3646, allocations: 3.562 kB / 390.5 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002172/0.3668, allocations: 1.425 MB / 391.9 MB, free: 2.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.3668, allocations: 1.938 kB / 391.9 MB, free: 2.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003257/0.3671, allocations: 79.88 kB / 392 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000165/0.3673, allocations: 61 kB / 392.1 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.768e-05/0.3673, allocations: 17.34 kB / 392.1 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001578/0.3689, allocations: 2.779 MB / 394.9 MB, free: 15.56 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.3689, allocations: 10 kB / 394.9 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0014/0.3703, allocations: 0.8706 MB / 395.8 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003652/0.3707, allocations: 191.3 kB / 395.9 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.3708, allocations: 19.17 kB / 396 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004142/0.3713, allocations: 33.86 kB / 396 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.973e-05/0.3714, allocations: 39.39 kB / 396 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/0.3714, allocations: 11.28 kB / 396 MB, free: 14.79 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008321/0.3722, allocations: 0.5276 MB / 396.6 MB, free: 14.55 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3722, allocations: 0 / 396.6 MB, free: 14.55 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001065/0.3733, allocations: 203.9 kB / 396.8 MB, free: 14.54 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 (40): * Single equations (assignments): 38 * 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.001891/0.3752, allocations: 1.92 MB / 398.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00133/0.3766, allocations: 0.7103 MB / 399.4 MB, free: 12.58 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.3766, allocations: 0.5625 kB / 399.4 MB, free: 12.58 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006736/0.3772, allocations: 454 kB / 399.8 MB, free: 12.26 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.3783, allocations: 206.5 kB / 400 MB, free: 12.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0116/0.3899, allocations: 11.48 MB / 411.5 MB, free: 2.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006517/0.3906, allocations: 1.033 MB / 412.6 MB, free: 1.406 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005318/0.3912, allocations: 109.4 kB / 412.7 MB, free: 1.344 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004678/0.3916, allocations: 392.5 kB / 413 MB, free: 1.012 MB / 318.1 MB Notification: Performance of SimCode: time 1.543e-06/0.3916, allocations: 0 / 413 MB, free: 1.012 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03558/0.4272, allocations: 17.18 MB / 430.2 MB, free: 1.328 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001889/0.4275, allocations: 225.5 kB / 430.5 MB, free: 1.078 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.234/2.661, allocations: 3.25 kB / 430.5 MB, free: 1.078 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat