Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009636/0.0009635, allocations: 98.41 kB / 16.99 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.0009482/0.0009483, allocations: 198 kB / 17.9 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.425/1.425, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002444/0.0002445, allocations: 8 kB / 306.7 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1161, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01017/0.1263, allocations: 9.347 MB / 367.6 MB, free: 4.387 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006714/0.133, allocations: 3.186 MB / 370.7 MB, free: 1.191 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001567/0.1347, allocations: 31.94 kB / 370.8 MB, free: 1.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001669/0.1363, allocations: 0.5168 MB / 371.3 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2191/0.3555, allocations: 0.6979 MB / 372 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001636/0.3572, allocations: 248.1 kB / 372.2 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004385/0.3616, allocations: 1.548 MB / 373.8 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00139/0.363, allocations: 0.6839 MB / 374.5 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001823/0.3648, allocations: 0.6346 MB / 375.1 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001594/0.3664, allocations: 0.7165 MB / 375.8 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002193/0.3666, allocations: 99.31 kB / 375.9 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005573/0.3672, allocations: 135.8 kB / 376 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002719/0.3675, allocations: 274.9 kB / 376.3 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005758/0.3681, allocations: 386 kB / 376.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003004/0.3711, allocations: 2.051 MB / 378.7 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3711, allocations: 0 / 378.7 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3711, allocations: 0 / 378.7 MB, free: 9.668 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.409e-05/0.3712, allocations: 0 / 378.7 MB, free: 9.668 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003667/0.3749, allocations: 1.757 MB / 380.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.3749, allocations: 9.312 kB / 380.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003318/0.3753, allocations: 220.2 kB / 380.7 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006732/0.3759, allocations: 247.2 kB / 381 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001766/0.3777, allocations: 1.019 MB / 382 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001106/0.3778, allocations: 111.5 kB / 382.1 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001909/0.378, allocations: 162.8 kB / 382.2 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002545/0.3806, allocations: 1.461 MB / 383.7 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.97e-05/0.3806, allocations: 11.27 kB / 383.7 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001174/0.3808, allocations: 68.31 kB / 383.8 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-05/0.3808, allocations: 37.5 kB / 383.8 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001886/0.3827, allocations: 0.9681 MB / 384.8 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007737/0.3905, allocations: 6.518 MB / 391.3 MB, free: 4.211 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008263/0.3913, allocations: 406.5 kB / 391.7 MB, free: 4.133 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.053e-05/0.3914, allocations: 9.812 kB / 391.7 MB, free: 4.133 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005054/0.3919, allocations: 267.2 kB / 392 MB, free: 4.012 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.854e-06/0.3919, allocations: 4 kB / 392 MB, free: 4.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.003328/0.3952, allocations: 1.781 MB / 393.8 MB, free: 3.098 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.3953, allocations: 169.2 kB / 393.9 MB, free: 2.906 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001575/0.3969, allocations: 1.19 MB / 395.1 MB, free: 2.277 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.74e-05/0.3969, allocations: 33.83 kB / 395.1 MB, free: 2.242 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004986/0.3974, allocations: 0.8735 MB / 396 MB, free: 1.469 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.3976, allocations: 198.3 kB / 396.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.417e-05/0.3976, allocations: 25.5 kB / 396.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.782e-05/0.3977, allocations: 351.5 kB / 396.6 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004243/0.3981, allocations: 234.1 kB / 396.8 MB, free: 0.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006728/0.3988, allocations: 0.7952 MB / 397.6 MB, free: 15.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006213/0.3994, allocations: 398.7 kB / 398 MB, free: 15.71 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.779e-06/0.3994, allocations: 5.969 kB / 398 MB, free: 15.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002064/0.4015, allocations: 1.185 MB / 399.2 MB, free: 15.08 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/0.4016, allocations: 43.72 kB / 399.2 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.619e-05/0.4017, allocations: 19.25 kB / 399.2 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002288/0.4019, allocations: 66.8 kB / 399.3 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008146/0.4027, allocations: 270.9 kB / 399.6 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002266/0.405, allocations: 2.597 MB / 402.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.4061, allocations: 68.98 kB / 402.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.361e-05/0.4062, allocations: 61.91 kB / 402.3 MB, free: 12.23 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007448/0.4069, allocations: 363.8 kB / 402.7 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001568/0.4071, allocations: 129.3 kB / 402.8 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001023/0.4081, allocations: 0.5657 MB / 403.3 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.4081, allocations: 5.719 kB / 403.4 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.4081, allocations: 3.953 kB / 403.4 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.4082, allocations: 3.984 kB / 403.4 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002718/0.4109, allocations: 1.818 MB / 405.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.4109, allocations: 3.25 kB / 405.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004124/0.4113, allocations: 104 kB / 405.3 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001425/0.4115, allocations: 49.22 kB / 405.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.135e-05/0.4115, allocations: 22.02 kB / 405.4 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001797/0.4133, allocations: 2.558 MB / 407.9 MB, free: 7.473 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.4133, allocations: 3.125 kB / 407.9 MB, free: 7.473 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001556/0.4149, allocations: 1.124 MB / 409 MB, free: 6.547 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004389/0.4154, allocations: 247.7 kB / 409.3 MB, free: 6.324 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/0.4155, allocations: 16.61 kB / 409.3 MB, free: 6.316 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000479/0.416, allocations: 36.62 kB / 409.3 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.4161, allocations: 52.38 kB / 409.4 MB, free: 6.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.189e-05/0.4161, allocations: 22.61 kB / 409.4 MB, free: 6.262 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001097/0.4172, allocations: 0.7746 MB / 410.2 MB, free: 5.551 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4173, allocations: 0 / 410.2 MB, free: 5.551 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001191/0.4185, allocations: 304 kB / 410.5 MB, free: 5.254 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002404/0.4209, allocations: 2.644 MB / 413.1 MB, free: 2.48 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.4226, allocations: 0.9245 MB / 414 MB, free: 1.523 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.4226, allocations: 4 kB / 414.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006297/0.4232, allocations: 471.6 kB / 414.5 MB, free: 1.035 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001293/0.4245, allocations: 314.3 kB / 414.8 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01836/0.4429, allocations: 20.62 MB / 435.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008052/0.4438, allocations: 1.209 MB / 436.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007129/0.4445, allocations: 173.5 kB / 436.8 MB, free: 9.969 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006163/0.4451, allocations: 0.5657 MB / 437.4 MB, free: 9.402 MB / 350.1 MB Notification: Performance of SimCode: time 9.91e-07/0.4451, allocations: 0 / 437.4 MB, free: 9.402 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04664/0.4918, allocations: 24.87 MB / 462.3 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/0.492, allocations: 227.7 kB / 462.5 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.489/2.981, allocations: 0 / 462.5 MB, free: 0.6641 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat does not exist to compare? outputFormat=mat