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.0008177/0.0008178, allocations: 95.53 kB / 17.01 MB, free: 6.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008848/0.000885, allocations: 197.6 kB / 17.91 MB, free: 5.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.512/1.512, allocations: 227.4 MB / 246 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002827/0.0002828, allocations: 8 kB / 306.8 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1103, allocations: 51.5 MB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007457/0.1178, allocations: 7.261 MB / 365.6 MB, free: 6.465 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005053/0.1229, allocations: 2.565 MB / 368.2 MB, free: 3.895 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007516/0.1237, allocations: 23.94 kB / 368.2 MB, free: 3.871 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00131/0.125, allocations: 465.3 kB / 368.6 MB, free: 3.414 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001021/0.1261, allocations: 401.1 kB / 369 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004551/0.1265, allocations: 171.8 kB / 369.2 MB, free: 2.852 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00151/0.128, allocations: 1.346 MB / 370.5 MB, free: 1.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006635/0.1287, allocations: 423.3 kB / 370.9 MB, free: 1.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000778/0.1295, allocations: 465.9 kB / 371.4 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005878/0.1301, allocations: 0.5171 MB / 371.9 MB, free: 96 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.1302, allocations: 64 kB / 372 MB, free: 32 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2332/0.3635, allocations: 99.12 kB / 372.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003495/0.3639, allocations: 195.7 kB / 372.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006135/0.3645, allocations: 267.4 kB / 372.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00218/0.3667, allocations: 1.375 MB / 373.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.388e-06/0.3667, allocations: 4.281 kB / 373.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3667, allocations: 0 / 373.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.39e-05/0.3667, allocations: 0 / 373.9 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002451/0.3692, allocations: 1.292 MB / 375.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.3692, allocations: 9.75 kB / 375.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000236/0.3695, allocations: 150.5 kB / 375.4 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008471/0.3703, allocations: 203.9 kB / 375.6 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001391/0.3717, allocations: 0.7147 MB / 376.3 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.3719, allocations: 77.41 kB / 376.4 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001763/0.372, allocations: 104 kB / 376.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00196/0.374, allocations: 0.9479 MB / 377.4 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.893e-05/0.3741, allocations: 1.891 kB / 377.4 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.821e-05/0.3742, allocations: 42.16 kB / 377.4 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.095e-05/0.3742, allocations: 23.38 kB / 377.5 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001406/0.3756, allocations: 0.6623 MB / 378.1 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005922/0.3815, allocations: 3.967 MB / 382.1 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007738/0.3823, allocations: 451.7 kB / 382.5 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006436/0.383, allocations: 275.7 kB / 382.8 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.912e-05/0.3831, allocations: 9.969 kB / 382.8 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.957e-05/0.3831, allocations: 42.78 kB / 382.9 MB, free: 7.395 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 3.868e-06/0.3831, allocations: 3.656 kB / 382.9 MB, free: 7.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.003403/0.3865, allocations: 1.567 MB / 384.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/0.3866, allocations: 85.58 kB / 384.5 MB, free: 6.602 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001338/0.3879, allocations: 0.8298 MB / 385.3 MB, free: 6.469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.749e-05/0.388, allocations: 34.61 kB / 385.4 MB, free: 6.438 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003837/0.3884, allocations: 0.566 MB / 385.9 MB, free: 6.148 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.3885, allocations: 161.9 kB / 386.1 MB, free: 6.051 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.796e-05/0.3885, allocations: 16.72 kB / 386.1 MB, free: 6.047 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.915e-05/0.3886, allocations: 339.2 kB / 386.4 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003775/0.389, allocations: 180.6 kB / 386.6 MB, free: 5.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005322/0.3895, allocations: 473.7 kB / 387.1 MB, free: 5.367 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004802/0.39, allocations: 256.5 kB / 387.3 MB, free: 5.348 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.3901, allocations: 3.281 kB / 387.3 MB, free: 5.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001429/0.3915, allocations: 0.7989 MB / 388.1 MB, free: 5.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.3915, allocations: 9.594 kB / 388.1 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/0.3915, allocations: 9.219 kB / 388.2 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000302/0.3919, allocations: 82.75 kB / 388.2 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000528/0.3924, allocations: 161.4 kB / 388.4 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001988/0.3944, allocations: 2.877 MB / 391.3 MB, free: 2.613 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007652/0.3952, allocations: 42.23 kB / 391.3 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.11e-05/0.3952, allocations: 31.81 kB / 391.3 MB, free: 2.609 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006771/0.3959, allocations: 265.4 kB / 391.6 MB, free: 2.445 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001586/0.3961, allocations: 90.12 kB / 391.7 MB, free: 2.398 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001124/0.3972, allocations: 0.5123 MB / 392.2 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.084e-06/0.3972, allocations: 3.438 kB / 392.2 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3973, allocations: 2.406 kB / 392.2 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.3973, allocations: 2.391 kB / 392.2 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002826/0.4001, allocations: 1.488 MB / 393.7 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/0.4001, allocations: 5.594 kB / 393.7 MB, free: 1.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000379/0.4005, allocations: 78.7 kB / 393.8 MB, free: 1.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002363/0.4008, allocations: 71.62 kB / 393.9 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.4008, allocations: 13.25 kB / 393.9 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002175/0.403, allocations: 2.857 MB / 396.7 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.403, allocations: 2.406 kB / 396.7 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001524/0.4045, allocations: 0.8176 MB / 397.5 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004651/0.405, allocations: 208.8 kB / 397.7 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/0.4051, allocations: 12.66 kB / 397.8 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004536/0.4056, allocations: 32.41 kB / 397.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/0.4057, allocations: 42.8 kB / 397.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.58e-05/0.4058, allocations: 10.5 kB / 397.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001041/0.4068, allocations: 0.566 MB / 398.4 MB, free: 13.36 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4068, allocations: 1.062 kB / 398.4 MB, free: 13.36 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001069/0.4079, allocations: 208.8 kB / 398.6 MB, free: 13.34 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001834/0.4097, allocations: 1.384 MB / 400 MB, free: 12.29 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001433/0.4112, allocations: 0.7139 MB / 400.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4112, allocations: 0 / 400.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007174/0.4119, allocations: 465.9 kB / 401.2 MB, free: 11.54 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/0.4132, allocations: 215.8 kB / 401.4 MB, free: 11.43 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009748/0.4229, allocations: 5.36 MB / 406.7 MB, free: 7.793 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006575/0.4236, allocations: 1.012 MB / 407.7 MB, free: 6.949 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005541/0.4242, allocations: 114.1 kB / 407.9 MB, free: 6.887 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005079/0.4247, allocations: 392.9 kB / 408.2 MB, free: 6.555 MB / 318.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4247, allocations: 0 / 408.2 MB, free: 6.555 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03827/0.463, allocations: 17.84 MB / 426.1 MB, free: 5.582 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003151/0.4634, allocations: 229.8 kB / 426.3 MB, free: 5.336 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.275/2.738, allocations: 4 kB / 426.3 MB, free: 5.332 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