Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002337/0.002343, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.102/2.102, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001567/0.001567, allocations: 101.7 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000527/0.0005272, allocations: 12 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.335, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01333/0.3484, allocations: 9.276 MB / 383.9 MB, free: 38.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007365/0.3558, allocations: 3.141 MB / 387.1 MB, free: 35.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001734/0.3576, allocations: 33.25 kB / 387.1 MB, free: 35.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002249/0.3599, allocations: 0.5103 MB / 387.6 MB, free: 35.28 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002886/0.3628, allocations: 0.7053 MB / 388.3 MB, free: 34.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001089/0.3639, allocations: 248.6 kB / 388.5 MB, free: 34.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003756/0.3677, allocations: 1.547 MB / 390.1 MB, free: 33.33 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001213/0.369, allocations: 0.6802 MB / 390.8 MB, free: 32.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001092/0.3701, allocations: 0.6419 MB / 391.4 MB, free: 31.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009494/0.371, allocations: 0.7116 MB / 392.1 MB, free: 31.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001953/0.3713, allocations: 96 kB / 392.2 MB, free: 31.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005064/0.3718, allocations: 136 kB / 392.4 MB, free: 31.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002259/0.372, allocations: 278.8 kB / 392.6 MB, free: 30.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003819/0.3724, allocations: 388.8 kB / 393 MB, free: 30.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002182/0.3746, allocations: 2.041 MB / 395 MB, free: 28.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3746, allocations: 4 kB / 395.1 MB, free: 28.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3746, allocations: 0 / 395.1 MB, free: 28.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.954e-05/0.3747, allocations: 0 / 395.1 MB, free: 28.34 MB / 298.7 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.004684/0.3794, allocations: 1.756 MB / 396.8 MB, free: 26.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.685e-05/0.3795, allocations: 8.031 kB / 396.8 MB, free: 26.51 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000842/0.3803, allocations: 219.9 kB / 397 MB, free: 26.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001831/0.3822, allocations: 245.6 kB / 397.3 MB, free: 26.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004139/0.3864, allocations: 1.008 MB / 398.3 MB, free: 24.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001889/0.3866, allocations: 111.1 kB / 398.4 MB, free: 24.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004772/0.3871, allocations: 159.9 kB / 398.5 MB, free: 24.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005099/0.3923, allocations: 1.468 MB / 400 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-05/0.3924, allocations: 11.94 kB / 400 MB, free: 23.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001739/0.3926, allocations: 60 kB / 400.1 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.391e-05/0.3926, allocations: 40 kB / 400.1 MB, free: 23.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002773/0.3954, allocations: 0.9746 MB / 401.1 MB, free: 22.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01038/0.4058, allocations: 6.531 MB / 407.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001189/0.4071, allocations: 400.2 kB / 408 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.878e-05/0.4071, allocations: 4.438 kB / 408 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006993/0.4078, allocations: 276.8 kB / 408.3 MB, free: 14.51 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 3.417e-06/0.4079, allocations: 0 / 408.3 MB, free: 14.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.004515/0.4124, allocations: 1.786 MB / 410.1 MB, free: 12.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.502e-05/0.4125, allocations: 166.8 kB / 410.2 MB, free: 12.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001961/0.4145, allocations: 1.183 MB / 411.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.803e-05/0.4145, allocations: 37.7 kB / 411.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006215/0.4152, allocations: 0.8576 MB / 412.3 MB, free: 10.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000169/0.4154, allocations: 201.2 kB / 412.5 MB, free: 10.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.66e-05/0.4154, allocations: 24 kB / 412.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.4155, allocations: 354.8 kB / 412.9 MB, free: 9.738 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006768/0.4162, allocations: 230.5 kB / 413.1 MB, free: 9.516 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009411/0.4172, allocations: 0.8073 MB / 413.9 MB, free: 8.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008778/0.4181, allocations: 387.6 kB / 414.3 MB, free: 8.043 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.281e-05/0.4181, allocations: 11.95 kB / 414.3 MB, free: 8.031 MB / 298.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002451/0.4206, allocations: 1.088 MB / 415.4 MB, free: 6.926 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.749e-05/0.4206, allocations: 42.64 kB / 415.4 MB, free: 6.879 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.558e-05/0.4207, allocations: 24.67 kB / 415.5 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003003/0.421, allocations: 69.7 kB / 415.5 MB, free: 6.781 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/0.4224, allocations: 267.5 kB / 415.8 MB, free: 6.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001783/0.4242, allocations: 2.607 MB / 418.4 MB, free: 3.645 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/0.4256, allocations: 67.88 kB / 418.5 MB, free: 3.578 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-05/0.4257, allocations: 60.19 kB / 418.5 MB, free: 3.52 MB / 298.7 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.0007456/0.4265, allocations: 361.3 kB / 418.9 MB, free: 3.156 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001769/0.4267, allocations: 134.3 kB / 419 MB, free: 3.023 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001458/0.4281, allocations: 0.5645 MB / 419.6 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/0.4282, allocations: 4 kB / 419.6 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4282, allocations: 3.938 kB / 419.6 MB, free: 2.445 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.4282, allocations: 3.984 kB / 419.6 MB, free: 2.441 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003581/0.4318, allocations: 1.818 MB / 421.4 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.4319, allocations: 4.438 kB / 421.4 MB, free: 0.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007971/0.4327, allocations: 115.8 kB / 421.5 MB, free: 396 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002175/0.4329, allocations: 41.7 kB / 421.6 MB, free: 348 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.359e-05/0.433, allocations: 19.98 kB / 421.6 MB, free: 328 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002409/0.4354, allocations: 2.556 MB / 424.1 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.4354, allocations: 7.969 kB / 424.1 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002588/0.438, allocations: 1.132 MB / 425.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006141/0.4387, allocations: 243.4 kB / 425.5 MB, free: 11.92 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002394/0.4389, allocations: 16 kB / 425.5 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008732/0.4398, allocations: 39.97 kB / 425.6 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000169/0.44, allocations: 51.83 kB / 425.6 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.547e-05/0.4401, allocations: 20 kB / 425.6 MB, free: 11.8 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001687/0.4418, allocations: 0.7797 MB / 426.4 MB, free: 11.02 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.4418, allocations: 0 / 426.4 MB, free: 11.02 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001738/0.4435, allocations: 296 kB / 426.7 MB, free: 10.73 MB / 314.7 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.003386/0.4469, allocations: 2.63 MB / 429.3 MB, free: 7.977 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002413/0.4494, allocations: 0.9256 MB / 430.3 MB, free: 7.016 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.4494, allocations: 4.188 kB / 430.3 MB, free: 7.012 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.4506, allocations: 466.1 kB / 430.7 MB, free: 6.531 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002381/0.453, allocations: 315 kB / 431 MB, free: 6.227 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02826/0.4813, allocations: 20.66 MB / 451.7 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001165/0.4825, allocations: 1.209 MB / 452.9 MB, free: 15.57 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001216/0.4837, allocations: 0.5735 MB / 453.5 MB, free: 15 MB / 346.7 MB Notification: Performance of SimCode: time 1.123e-06/0.4838, allocations: 0 / 453.5 MB, free: 15 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.648/4.132, allocations: 36.55 MB / 490 MB, free: 10.41 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat does not exist to compare? outputFormat=mat