Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_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.000979/0.0009791, allocations: 172.3 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.377/1.377, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008914/0.0008912, allocations: 90.67 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.426e-05/3.44e-05, allocations: 0 / 322.6 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08696/0.08701, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3456/0.4327, allocations: 125 MB / 495.2 MB, free: 1.004 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/0.433, allocations: 79.77 kB / 495.2 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4295/0.8625, allocations: 116 MB / 0.5969 GB, free: 86.53 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.8625, allocations: 0 / 0.5969 GB, free: 86.53 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003846/0.8629, allocations: 139.6 kB / 0.597 GB, free: 86.5 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01185/0.8748, allocations: 4.883 MB / 0.6018 GB, free: 82.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.8748, allocations: 12.03 kB / 0.6018 GB, free: 82.56 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001852/0.8767, allocations: 0.6949 MB / 0.6025 GB, free: 81.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004695/0.8814, allocations: 0.956 MB / 0.6034 GB, free: 80.9 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0103/0.8917, allocations: 4.393 MB / 0.6077 GB, free: 76.53 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002713/0.892, allocations: 393.3 kB / 0.6081 GB, free: 76.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001255/0.8933, allocations: 0.5028 MB / 0.6086 GB, free: 75.64 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009188/0.9025, allocations: 6.563 MB / 0.615 GB, free: 68.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.681e-05/0.9026, allocations: 15.84 kB / 0.615 GB, free: 68.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004297/0.903, allocations: 219.7 kB / 0.6152 GB, free: 68.67 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000141/0.9032, allocations: 230.2 kB / 0.6154 GB, free: 68.44 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007709/0.9109, allocations: 5.246 MB / 0.6205 GB, free: 63.19 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02631/0.9372, allocations: 21.14 MB / 0.6412 GB, free: 41.73 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005805/0.9431, allocations: 8.501 MB / 0.6495 GB, free: 32.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002362/0.9455, allocations: 2 MB / 0.6514 GB, free: 30.26 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008767/0.9542, allocations: 6.008 MB / 0.6573 GB, free: 24.19 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/0.9543, allocations: 52.56 kB / 0.6574 GB, free: 24.13 MB / 410.7 MB Notification: Performance of pre-optimization done (n=208): time 3.897e-06/0.9543, allocations: 0 / 0.6574 GB, free: 24.13 MB / 410.7 MB Notification: Performance of matching and sorting (n=232): time 0.0161/0.9704, allocations: 9.278 MB / 0.6664 GB, free: 14.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/0.9705, allocations: 77.41 kB / 0.6665 GB, free: 14.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003053/0.9735, allocations: 2.5 MB / 0.6689 GB, free: 12.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001546/0.9737, allocations: 65.7 kB / 0.669 GB, free: 12.11 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009735/0.9747, allocations: 2.348 MB / 0.6713 GB, free: 9.742 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003991/0.9751, allocations: 0.7966 MB / 0.6721 GB, free: 8.953 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.9752, allocations: 64 kB / 0.6721 GB, free: 8.891 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.9754, allocations: 424.1 kB / 0.6725 GB, free: 8.469 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001468/0.9768, allocations: 1.244 MB / 0.6737 GB, free: 7.223 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001789/0.9786, allocations: 2.128 MB / 0.6758 GB, free: 4.707 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001857/0.9805, allocations: 1.626 MB / 0.6774 GB, free: 3.055 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.161e-05/0.9805, allocations: 11.98 kB / 0.6774 GB, free: 3.043 MB / 410.7 MB Notification: Performance of matching and sorting (n=379) (initialization): time 0.006614/0.9871, allocations: 4.477 MB / 0.6818 GB, free: 14.48 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.781e-05/0.9872, allocations: 16 kB / 0.6818 GB, free: 14.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.172e-05/0.9873, allocations: 28.53 kB / 0.6818 GB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001704/0.989, allocations: 0.7145 MB / 0.6825 GB, free: 13.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002538/0.9915, allocations: 0.702 MB / 0.6832 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009346/1.001, allocations: 9.374 MB / 0.6924 GB, free: 3.086 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002795/1.004, allocations: 187.8 kB / 0.6926 GB, free: 2.902 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002747/1.004, allocations: 128 kB / 0.6927 GB, free: 2.777 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (343): * Single equations (assignments): 337 * 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%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004893/1.005, allocations: 299.9 kB / 0.693 GB, free: 2.477 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005168/1.005, allocations: 320.1 kB / 0.6933 GB, free: 2.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2121/1.217, allocations: 4.001 MB / 0.6972 GB, free: 91.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-05/1.217, allocations: 22.44 kB / 0.6972 GB, free: 91.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.647e-05/1.217, allocations: 10.86 kB / 0.6972 GB, free: 91.59 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.543e-05/1.217, allocations: 13.03 kB / 0.6972 GB, free: 91.59 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01476/1.232, allocations: 8.627 MB / 0.7056 GB, free: 90.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/1.232, allocations: 8.281 kB / 0.7056 GB, free: 90.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001653/1.234, allocations: 379.5 kB / 0.706 GB, free: 90.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002503/1.236, allocations: 0.937 MB / 0.7069 GB, free: 90.74 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002127/1.237, allocations: 62.44 kB / 0.707 GB, free: 90.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01298/1.249, allocations: 15.46 MB / 0.7221 GB, free: 81.77 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/1.25, allocations: 3.812 kB / 0.7221 GB, free: 81.77 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007576/1.257, allocations: 5.9 MB / 0.7279 GB, free: 80.84 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00138/1.259, allocations: 0.6789 MB / 0.7285 GB, free: 80.74 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003981/1.259, allocations: 50.34 kB / 0.7286 GB, free: 80.74 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001494/1.26, allocations: 159.5 kB / 0.7287 GB, free: 80.74 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004244/1.261, allocations: 175.5 kB / 0.7289 GB, free: 80.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/1.261, allocations: 64.64 kB / 0.7289 GB, free: 80.74 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00287/1.264, allocations: 1.894 MB / 0.7308 GB, free: 80.58 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.41e-07/1.264, allocations: 0 / 0.7308 GB, free: 80.58 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003544/1.267, allocations: 1.012 MB / 0.7318 GB, free: 80.58 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 171 * 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,75.0%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007932/1.275, allocations: 7.61 MB / 0.7392 GB, free: 77.52 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005283/1.281, allocations: 3.942 MB / 0.7431 GB, free: 75.76 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.754e-06/1.281, allocations: 1.531 kB / 0.7431 GB, free: 75.76 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003643/1.284, allocations: 2.676 MB / 0.7457 GB, free: 74.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003519/1.288, allocations: 0.7688 MB / 0.7464 GB, free: 74.11 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01417/1.302, allocations: 9.195 MB / 0.7554 GB, free: 70.47 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002468/1.305, allocations: 3.413 MB / 0.7587 GB, free: 69.19 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002294/1.307, allocations: 0.7438 MB / 0.7595 GB, free: 69.11 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001903/1.309, allocations: 1.936 MB / 0.7614 GB, free: 67.5 MB / 426.7 MB Notification: Performance of SimCode: time 8.41e-07/1.309, allocations: 0 / 0.7614 GB, free: 67.5 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1056/1.415, allocations: 85.67 MB / 0.845 GB, free: 14.07 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002086/1.415, allocations: 199.9 kB / 0.8452 GB, free: 13.84 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.264/5.679, allocations: 4 kB / 0.8452 GB, free: 13.84 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat