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.002197/0.002203, allocations: 181.5 kB / 13.66 MB, free: 1.664 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.236/2.236, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001109/0.001109, allocations: 86.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.588e-05/3.608e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09818/0.09827, allocations: 47.57 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4941/0.5924, allocations: 130.4 MB / 499.6 MB, free: 11.74 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003346/0.5928, allocations: 91.55 kB / 499.6 MB, free: 11.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7697/1.362, allocations: 124.2 MB / 0.6092 GB, free: 75.21 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.735e-06/1.363, allocations: 4 kB / 0.6092 GB, free: 75.21 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008658/1.363, allocations: 131.8 kB / 0.6093 GB, free: 75.08 MB / 410.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.02968/1.393, allocations: 5.121 MB / 0.6143 GB, free: 69.89 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.421e-05/1.393, allocations: 8.031 kB / 0.6143 GB, free: 69.88 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004123/1.397, allocations: 0.7327 MB / 0.6151 GB, free: 69.14 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01291/1.41, allocations: 1.008 MB / 0.616 GB, free: 68.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02467/1.435, allocations: 4.597 MB / 0.6205 GB, free: 63.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007208/1.436, allocations: 402.8 kB / 0.6209 GB, free: 63.05 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003122/1.439, allocations: 0.5311 MB / 0.6214 GB, free: 62.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03299/1.472, allocations: 6.831 MB / 0.6281 GB, free: 55.49 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000437/1.473, allocations: 7.906 kB / 0.6281 GB, free: 55.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00263/1.475, allocations: 228 kB / 0.6283 GB, free: 55.26 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004828/1.476, allocations: 250.6 kB / 0.6286 GB, free: 55.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02705/1.503, allocations: 5.423 MB / 0.6339 GB, free: 49.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06326/1.566, allocations: 22.54 MB / 0.6559 GB, free: 26.47 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01213/1.578, allocations: 8.281 MB / 0.664 GB, free: 17.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005554/1.584, allocations: 2.11 MB / 0.666 GB, free: 15.18 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01951/1.604, allocations: 6.314 MB / 0.6722 GB, free: 8.727 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.962e-05/1.604, allocations: 60.56 kB / 0.6722 GB, free: 8.656 MB / 410.7 MB Notification: Performance of pre-optimization done (n=227): time 5.58e-06/1.604, allocations: 0 / 0.6722 GB, free: 8.656 MB / 410.7 MB Notification: Performance of matching and sorting (n=254): time 0.03613/1.64, allocations: 10.06 MB / 0.6821 GB, free: 14.53 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.504e-05/1.64, allocations: 81.34 kB / 0.6821 GB, free: 14.44 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008859/1.649, allocations: 2.726 MB / 0.6848 GB, free: 11.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006944/1.65, allocations: 69.7 kB / 0.6849 GB, free: 11.64 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003554/1.653, allocations: 2.317 MB / 0.6871 GB, free: 9.297 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002102/1.655, allocations: 0.8781 MB / 0.688 GB, free: 8.406 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006173/1.656, allocations: 68 kB / 0.6881 GB, free: 8.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005955/1.657, allocations: 441.6 kB / 0.6885 GB, free: 7.898 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005955/1.663, allocations: 1.318 MB / 0.6898 GB, free: 6.578 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00748/1.67, allocations: 2.297 MB / 0.692 GB, free: 3.852 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007289/1.678, allocations: 1.737 MB / 0.6937 GB, free: 2.09 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.452e-05/1.678, allocations: 16 kB / 0.6937 GB, free: 2.074 MB / 426.7 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.3471/2.025, allocations: 4.539 MB / 0.6982 GB, free: 83.96 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.953e-05/2.025, allocations: 18.86 kB / 0.6982 GB, free: 83.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.879e-05/2.025, allocations: 29.97 kB / 0.6982 GB, free: 83.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003547/2.028, allocations: 0.724 MB / 0.6989 GB, free: 83.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006391/2.035, allocations: 0.7661 MB / 0.6997 GB, free: 83.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01651/2.051, allocations: 9.752 MB / 0.7092 GB, free: 78.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005041/2.057, allocations: 202 kB / 0.7094 GB, free: 78.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008389/2.057, allocations: 148.2 kB / 0.7095 GB, free: 78.75 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (378): * Single equations (assignments): 372 * 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: 4 * 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: 4 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008224/2.058, allocations: 295.5 kB / 0.7098 GB, free: 78.65 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0012/2.06, allocations: 354.5 kB / 0.7101 GB, free: 78.65 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01323/2.073, allocations: 4.219 MB / 0.7143 GB, free: 78.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.037e-05/2.073, allocations: 25.69 kB / 0.7143 GB, free: 78.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.788e-05/2.073, allocations: 10.34 kB / 0.7143 GB, free: 78.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.525e-05/2.073, allocations: 13.41 kB / 0.7143 GB, free: 78.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02894/2.102, allocations: 9.203 MB / 0.7233 GB, free: 77.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.199e-05/2.102, allocations: 3.844 kB / 0.7233 GB, free: 77.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003796/2.106, allocations: 414.8 kB / 0.7237 GB, free: 77.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004488/2.11, allocations: 0.9592 MB / 0.7246 GB, free: 77.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005953/2.111, allocations: 66.58 kB / 0.7247 GB, free: 77.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0227/2.134, allocations: 15.93 MB / 0.7402 GB, free: 68.25 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/2.134, allocations: 6.562 kB / 0.7403 GB, free: 68.25 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01487/2.149, allocations: 6.375 MB / 0.7465 GB, free: 66.12 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002817/2.152, allocations: 0.7205 MB / 0.7472 GB, free: 65.65 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008859/2.153, allocations: 59.67 kB / 0.7472 GB, free: 65.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003519/2.156, allocations: 161.1 kB / 0.7474 GB, free: 65.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009793/2.157, allocations: 192.4 kB / 0.7476 GB, free: 65.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002917/2.157, allocations: 73.14 kB / 0.7476 GB, free: 65.54 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005371/2.163, allocations: 2.062 MB / 0.7497 GB, free: 64.74 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.52e-07/2.163, allocations: 0 / 0.7497 GB, free: 64.74 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005725/2.169, allocations: 1.089 MB / 0.7507 GB, free: 64.62 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 190 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01521/2.184, allocations: 8.358 MB / 0.7589 GB, free: 59.93 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009464/2.193, allocations: 4.143 MB / 0.7629 GB, free: 58.09 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/2.193, allocations: 1.594 kB / 0.7629 GB, free: 58.09 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006495/2.2, allocations: 2.781 MB / 0.7656 GB, free: 56.59 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007719/2.208, allocations: 0.8875 MB / 0.7665 GB, free: 56.36 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02832/2.236, allocations: 9.565 MB / 0.7759 GB, free: 52.46 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005374/2.242, allocations: 3.447 MB / 0.7792 GB, free: 50.93 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004768/2.246, allocations: 2.113 MB / 0.7813 GB, free: 48.98 MB / 426.7 MB Notification: Performance of SimCode: time 1.663e-06/2.246, allocations: 0 / 0.7813 GB, free: 48.98 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.604/7.85, allocations: 252.6 MB / 1.028 GB, free: 116.6 MB / 474.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