Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.00168/0.00168, allocations: 182.1 kB / 16.4 MB, free: 5.754 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.013/2.013, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.001219/0.001218, allocations: 91.34 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003972/0.0003973, allocations: 12 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.3479, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009512/0.3575, allocations: 6.55 MB / 381.2 MB, free: 40.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005828/0.3634, allocations: 2.603 MB / 383.8 MB, free: 38.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001373/0.3648, allocations: 22.28 kB / 383.8 MB, free: 38.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002139/0.367, allocations: 476.2 kB / 384.3 MB, free: 37.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002255/0.3693, allocations: 0.4929 MB / 384.8 MB, free: 37.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009152/0.3702, allocations: 155.4 kB / 384.9 MB, free: 37.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003003/0.3732, allocations: 1.049 MB / 386 MB, free: 36.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009825/0.3743, allocations: 434.3 kB / 386.4 MB, free: 36.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001029/0.3753, allocations: 449.6 kB / 386.8 MB, free: 36.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008431/0.3762, allocations: 487.5 kB / 387.3 MB, free: 35.83 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002058/0.3764, allocations: 63.25 kB / 387.4 MB, free: 35.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005515/0.377, allocations: 105.8 kB / 387.5 MB, free: 35.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001704/0.3772, allocations: 180.1 kB / 387.6 MB, free: 35.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003895/0.3776, allocations: 264.6 kB / 387.9 MB, free: 35.51 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001681/0.3793, allocations: 1.328 MB / 389.2 MB, free: 34.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.3793, allocations: 0 / 389.2 MB, free: 34.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.564e-06/0.3793, allocations: 0 / 389.2 MB, free: 34.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.268e-05/0.3794, allocations: 0 / 389.2 MB, free: 34.18 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.003051/0.3824, allocations: 1.281 MB / 390.5 MB, free: 32.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.3825, allocations: 12.03 kB / 390.5 MB, free: 32.83 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003555/0.3829, allocations: 148.2 kB / 390.7 MB, free: 32.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007876/0.3837, allocations: 178.4 kB / 390.8 MB, free: 32.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001655/0.3853, allocations: 0.7153 MB / 391.6 MB, free: 31.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.715e-05/0.3854, allocations: 74 kB / 391.6 MB, free: 31.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001897/0.3856, allocations: 99.91 kB / 391.7 MB, free: 31.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002288/0.3879, allocations: 0.9346 MB / 392.7 MB, free: 30.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.334e-05/0.388, allocations: 0 / 392.7 MB, free: 30.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001172/0.3881, allocations: 40 kB / 392.7 MB, free: 30.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.57e-05/0.3882, allocations: 27.98 kB / 392.7 MB, free: 30.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001936/0.3901, allocations: 0.6559 MB / 393.4 MB, free: 29.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006979/0.3971, allocations: 3.946 MB / 397.3 MB, free: 25.72 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001014/0.3982, allocations: 445 kB / 397.8 MB, free: 25.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.059e-05/0.3983, allocations: 4 kB / 397.8 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/0.3983, allocations: 38.56 kB / 397.8 MB, free: 25.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 3.166e-06/0.3983, allocations: 3.938 kB / 397.8 MB, free: 25.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.003875/0.4022, allocations: 1.438 MB / 399.3 MB, free: 23.69 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.796e-05/0.4023, allocations: 89.05 kB / 399.3 MB, free: 23.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00124/0.4035, allocations: 0.7785 MB / 400.1 MB, free: 22.8 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.67e-05/0.4036, allocations: 33.7 kB / 400.2 MB, free: 22.76 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003491/0.404, allocations: 0.5784 MB / 400.7 MB, free: 22.17 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.4041, allocations: 165.7 kB / 400.9 MB, free: 22.01 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-05/0.4042, allocations: 12 kB / 400.9 MB, free: 22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.205e-05/0.4043, allocations: 346.8 kB / 401.2 MB, free: 21.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005447/0.4048, allocations: 169.9 kB / 401.4 MB, free: 21.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007055/0.4055, allocations: 467.6 kB / 401.9 MB, free: 20.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006715/0.4062, allocations: 255.7 kB / 402.1 MB, free: 20.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.4063, allocations: 0 / 402.1 MB, free: 20.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001813/0.4081, allocations: 0.721 MB / 402.8 MB, free: 19.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.115e-05/0.4081, allocations: 12 kB / 402.8 MB, free: 19.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.4082, allocations: 8 kB / 402.9 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003288/0.4085, allocations: 69.69 kB / 402.9 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009486/0.4095, allocations: 164 kB / 403.1 MB, free: 19.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002323/0.4118, allocations: 2.806 MB / 405.9 MB, free: 16.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009804/0.4128, allocations: 43.84 kB / 405.9 MB, free: 16.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.115e-05/0.4129, allocations: 36 kB / 406 MB, free: 16.5 MB / 298.7 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.0005727/0.4135, allocations: 257.7 kB / 406.2 MB, free: 16.24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001662/0.4137, allocations: 90.97 kB / 406.3 MB, free: 16.15 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001387/0.4151, allocations: 0.4991 MB / 406.8 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.4151, allocations: 4 kB / 406.8 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4151, allocations: 0 / 406.8 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.4151, allocations: 3.984 kB / 406.8 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002988/0.4181, allocations: 1.429 MB / 408.2 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.513e-06/0.4182, allocations: 0 / 408.2 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005989/0.4188, allocations: 75.89 kB / 408.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002637/0.4191, allocations: 66.03 kB / 408.4 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.911e-05/0.4191, allocations: 16 kB / 408.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002098/0.4212, allocations: 2.786 MB / 411.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/0.4213, allocations: 0 / 411.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001986/0.4233, allocations: 0.8786 MB / 412.1 MB, free: 9.934 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004479/0.4238, allocations: 188 kB / 412.2 MB, free: 9.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001659/0.424, allocations: 12 kB / 412.3 MB, free: 9.719 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007018/0.4247, allocations: 36.09 kB / 412.3 MB, free: 9.684 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.4248, allocations: 43.84 kB / 412.3 MB, free: 9.641 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.881e-05/0.4249, allocations: 20 kB / 412.4 MB, free: 9.621 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009565/0.4258, allocations: 0.5186 MB / 412.9 MB, free: 9.105 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4259, allocations: 0 / 412.9 MB, free: 9.105 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001199/0.4271, allocations: 204 kB / 413.1 MB, free: 8.906 MB / 298.7 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.002302/0.4294, allocations: 1.922 MB / 415 MB, free: 6.902 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001699/0.4311, allocations: 0.7012 MB / 415.7 MB, free: 6.176 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.4311, allocations: 0.6875 kB / 415.7 MB, free: 6.176 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000893/0.432, allocations: 441.1 kB / 416.1 MB, free: 5.719 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001648/0.4337, allocations: 207.9 kB / 416.3 MB, free: 5.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01629/0.45, allocations: 11.55 MB / 427.9 MB, free: 9.598 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008798/0.451, allocations: 1.032 MB / 428.9 MB, free: 8.539 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000866/0.4519, allocations: 395.3 kB / 429.3 MB, free: 8.152 MB / 314.7 MB Notification: Performance of SimCode: time 1.353e-06/0.4519, allocations: 0 / 429.3 MB, free: 8.152 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.192/3.644, allocations: 24.66 MB / 454 MB, free: 15.48 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat