Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",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.001553/0.001553, allocations: 187.9 kB / 16.4 MB, free: 5.625 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.169/2.169, allocations: 205.4 MB / 222.5 MB, free: 13.77 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.001137/0.001137, allocations: 98.8 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00038/0.0003801, allocations: 12 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1159, allocations: 47.58 MB / 374.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.2994/0.4154, allocations: 17.41 MB / 392.1 MB, free: 10.09 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0158/0.4312, allocations: 6.241 MB / 398.3 MB, free: 9.699 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004533/0.4358, allocations: 110.6 kB / 398.4 MB, free: 9.668 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005491/0.4413, allocations: 1.123 MB / 399.5 MB, free: 9.395 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009188/0.4506, allocations: 1.821 MB / 401.3 MB, free: 9.266 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004889/0.4555, allocations: 0.874 MB / 402.2 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0122/0.4677, allocations: 4.365 MB / 406.6 MB, free: 6.727 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008288/0.4761, allocations: 3.702 MB / 410.3 MB, free: 5.281 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00535/0.4814, allocations: 2.026 MB / 412.3 MB, free: 4.344 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00652/0.488, allocations: 2.51 MB / 414.8 MB, free: 2.77 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002123/0.4902, allocations: 334.8 kB / 415.1 MB, free: 2.77 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004509/0.4947, allocations: 0.5501 MB / 415.7 MB, free: 2.664 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002801/0.4975, allocations: 1.363 MB / 417.1 MB, free: 1.719 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002929/0.5005, allocations: 1.199 MB / 418.3 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01562/0.5162, allocations: 8.666 MB / 426.9 MB, free: 9.176 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.5162, allocations: 0 / 426.9 MB, free: 9.176 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.561e-06/0.5162, allocations: 4 kB / 426.9 MB, free: 9.172 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003749/0.5166, allocations: 0 / 426.9 MB, free: 9.172 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02355/0.5402, allocations: 5.852 MB / 432.8 MB, free: 3.266 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.177e-05/0.5403, allocations: 8.031 kB / 432.8 MB, free: 3.258 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002902/0.5432, allocations: 0.7288 MB / 433.5 MB, free: 2.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008423/0.5516, allocations: 1.074 MB / 434.6 MB, free: 1.438 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01124/0.5629, allocations: 3.388 MB / 438 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007248/0.5637, allocations: 430.7 kB / 438.4 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002108/0.5658, allocations: 0.5232 MB / 438.9 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02496/0.5908, allocations: 6.974 MB / 445.9 MB, free: 5.984 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002442/0.5911, allocations: 15.91 kB / 445.9 MB, free: 5.969 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00105/0.5922, allocations: 216 kB / 446.1 MB, free: 5.758 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004262/0.5926, allocations: 258.6 kB / 446.4 MB, free: 5.504 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02088/0.6135, allocations: 5.929 MB / 452.3 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06338/0.6769, allocations: 22.42 MB / 474.7 MB, free: 8.578 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01467/0.6916, allocations: 8.288 MB / 483 MB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01615/0.7078, allocations: 5.149 MB / 488.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.018e-05/0.7079, allocations: 56.56 kB / 488.2 MB, free: 10.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=234): time 5.45e-06/0.708, allocations: 0 / 488.2 MB, free: 10.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=256): time 0.04434/0.7523, allocations: 11.76 MB / 500 MB, free: 14.06 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.111e-05/0.7524, allocations: 81.41 kB / 0.4883 GB, free: 13.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007283/0.7597, allocations: 3.006 MB / 0.4913 GB, free: 10.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005427/0.7603, allocations: 69.7 kB / 0.4913 GB, free: 10.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002503/0.7628, allocations: 2.325 MB / 0.4936 GB, free: 8.531 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001439/0.7643, allocations: 0.8779 MB / 0.4945 GB, free: 7.641 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003301/0.7647, allocations: 64 kB / 0.4945 GB, free: 7.578 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000321/0.765, allocations: 449.6 kB / 0.495 GB, free: 7.129 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004313/0.7693, allocations: 1.381 MB / 0.4963 GB, free: 5.742 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005418/0.7748, allocations: 2.356 MB / 0.4986 GB, free: 2.953 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005408/0.7802, allocations: 1.784 MB / 0.5003 GB, free: 1.148 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-05/0.7803, allocations: 12 kB / 0.5004 GB, free: 1.137 MB / 378.7 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.01398/0.7943, allocations: 4.585 MB / 0.5048 GB, free: 12.44 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.07e-05/0.7944, allocations: 20 kB / 0.5049 GB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-05/0.7945, allocations: 28 kB / 0.5049 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002129/0.7966, allocations: 0.5256 MB / 0.5054 GB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00599/0.8026, allocations: 0.7762 MB / 0.5061 GB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01422/0.8169, allocations: 9.55 MB / 0.5155 GB, free: 0.8477 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004202/0.8211, allocations: 191.9 kB / 0.5157 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000425/0.8216, allocations: 144 kB / 0.5158 GB, free: 0.5195 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 140 * 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 (391): * Single equations (assignments): 384 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004444/0.826, allocations: 1.574 MB / 0.5173 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001035/0.8271, allocations: 355.7 kB / 0.5177 GB, free: 14.58 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01221/0.8393, allocations: 4.2 MB / 0.5218 GB, free: 10.24 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-05/0.8394, allocations: 28 kB / 0.5218 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.985e-05/0.8394, allocations: 12 kB / 0.5218 GB, free: 10.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.519e-05/0.8394, allocations: 11.95 kB / 0.5218 GB, free: 10.19 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02566/0.8651, allocations: 9.281 MB / 0.5309 GB, free: 0.6875 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.8e-05/0.8652, allocations: 4 kB / 0.5309 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003778/0.869, allocations: 456.2 kB / 0.5313 GB, free: 244 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.278/1.147, allocations: 0.7171 MB / 0.532 GB, free: 121.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005662/1.148, allocations: 71.75 kB / 0.5321 GB, free: 121.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02039/1.168, allocations: 15.47 MB / 0.5472 GB, free: 110.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.299e-05/1.168, allocations: 12.16 kB / 0.5472 GB, free: 110.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01709/1.185, allocations: 6.655 MB / 0.5537 GB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002543/1.188, allocations: 0.7031 MB / 0.5544 GB, free: 106.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009991/1.189, allocations: 71.36 kB / 0.5545 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00321/1.192, allocations: 151.7 kB / 0.5546 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008257/1.193, allocations: 203.2 kB / 0.5548 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002717/1.193, allocations: 76.16 kB / 0.5549 GB, free: 106.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005093/1.198, allocations: 2.016 MB / 0.5569 GB, free: 105.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.62e-07/1.198, allocations: 1.375 kB / 0.5569 GB, free: 105.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005815/1.204, allocations: 0.9965 MB / 0.5578 GB, free: 105.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.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 (217): * Single equations (assignments): 209 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01571/1.22, allocations: 8.778 MB / 0.5664 GB, free: 100.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009851/1.23, allocations: 4.245 MB / 0.5705 GB, free: 98.14 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/1.23, allocations: 0 / 0.5705 GB, free: 98.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006695/1.237, allocations: 2.837 MB / 0.5733 GB, free: 96.55 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006685/1.243, allocations: 0.8861 MB / 0.5742 GB, free: 96.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09137/1.335, allocations: 52.09 MB / 0.625 GB, free: 45.49 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004521/1.339, allocations: 3.436 MB / 0.6284 GB, free: 42.02 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004279/1.344, allocations: 2.112 MB / 0.6305 GB, free: 39.91 MB / 410.7 MB Notification: Performance of SimCode: time 9.82e-07/1.344, allocations: 0 / 0.6305 GB, free: 39.91 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.752/7.096, allocations: 274.6 MB / 0.8986 GB, free: 128.4 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat