Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001324/0.001324, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008721/0.0008721, allocations: 96.02 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.909e-05/1.871e-05, allocations: 0 / 343.8 MB, free: 8.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1103, allocations: 51.49 MB / 395.3 MB, free: 4.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4235/0.5339, allocations: 131.9 MB / 0.5148 GB, free: 9.984 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/0.5342, allocations: 92.91 kB / 0.5149 GB, free: 9.938 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5952/1.129, allocations: 126 MB / 0.638 GB, free: 75.11 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.136e-06/1.129, allocations: 3.938 kB / 0.638 GB, free: 75.11 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004439/1.13, allocations: 136.6 kB / 0.6381 GB, free: 75.08 MB / 442.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.0153/1.145, allocations: 5.16 MB / 0.6431 GB, free: 72.66 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.264e-05/1.145, allocations: 7.844 kB / 0.6431 GB, free: 72.66 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006649/1.152, allocations: 1.011 MB / 0.6441 GB, free: 72.29 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01221/1.164, allocations: 4.622 MB / 0.6486 GB, free: 70 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002733/1.165, allocations: 180.9 kB / 0.6488 GB, free: 69.99 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001825/1.166, allocations: 321.2 kB / 0.6491 GB, free: 69.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01099/1.177, allocations: 5.095 MB / 0.6541 GB, free: 67.81 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01096/1.188, allocations: 6.045 MB / 0.66 GB, free: 65.1 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001214/1.189, allocations: 15.3 kB / 0.66 GB, free: 65.09 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004259/1.189, allocations: 3.656 kB / 0.66 GB, free: 65.09 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001872/1.189, allocations: 248.8 kB / 0.6603 GB, free: 65.07 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03272/1.222, allocations: 21.66 MB / 0.6814 GB, free: 53.14 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006318/1.228, allocations: 8.456 MB / 0.6897 GB, free: 45.87 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002822/1.231, allocations: 2.033 MB / 0.6917 GB, free: 45.11 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01031/1.241, allocations: 6.42 MB / 0.6979 GB, free: 41.14 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/1.242, allocations: 56.56 kB / 0.698 GB, free: 41.08 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 4.238e-06/1.242, allocations: 0 / 0.698 GB, free: 41.08 MB / 442.7 MB Notification: Performance of matching and sorting (n=258): time 0.01744/1.259, allocations: 8.944 MB / 0.7067 GB, free: 32.32 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.093e-05/1.259, allocations: 77.44 kB / 0.7068 GB, free: 32.23 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004023/1.263, allocations: 2.207 MB / 0.7089 GB, free: 30.02 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002931/1.263, allocations: 25.7 kB / 0.709 GB, free: 29.99 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001338/1.265, allocations: 2.508 MB / 0.7114 GB, free: 27.45 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006782/1.265, allocations: 0.8468 MB / 0.7122 GB, free: 26.59 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/1.266, allocations: 0 / 0.7122 GB, free: 26.59 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001672/1.266, allocations: 436.9 kB / 0.7127 GB, free: 26.16 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001652/1.268, allocations: 1.272 MB / 0.7139 GB, free: 24.88 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002298/1.27, allocations: 2.217 MB / 0.7161 GB, free: 22.23 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003311/1.273, allocations: 1.913 MB / 0.7179 GB, free: 20.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.387e-05/1.273, allocations: 8 kB / 0.7179 GB, free: 20.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=419) (initialization): time 0.008011/1.281, allocations: 4.65 MB / 0.7225 GB, free: 15.56 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.802e-05/1.281, allocations: 28.05 kB / 0.7225 GB, free: 15.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.549e-05/1.281, allocations: 28 kB / 0.7225 GB, free: 15.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001523/1.283, allocations: 0.7043 MB / 0.7232 GB, free: 14.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002531/1.285, allocations: 0.7605 MB / 0.724 GB, free: 14.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007539/1.293, allocations: 9.35 MB / 0.7331 GB, free: 4.215 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002954/1.296, allocations: 143.7 kB / 0.7332 GB, free: 4.074 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004746/1.296, allocations: 148 kB / 0.7334 GB, free: 3.93 MB / 442.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 (382): * Single equations (assignments): 376 * 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,75.0%) 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.0007311/1.297, allocations: 191.9 kB / 0.7336 GB, free: 3.734 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.31/1.607, allocations: 3.925 MB / 0.7374 GB, free: 67.98 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001589/1.609, allocations: 320.8 kB / 0.7377 GB, free: 67.98 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008528/1.617, allocations: 4.213 MB / 0.7418 GB, free: 67.56 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.448e-05/1.617, allocations: 26.03 kB / 0.7418 GB, free: 67.56 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.218e-05/1.617, allocations: 14.44 kB / 0.7418 GB, free: 67.56 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.997e-05/1.617, allocations: 12.47 kB / 0.7419 GB, free: 67.56 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01709/1.635, allocations: 8.56 MB / 0.7502 GB, free: 66.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.368e-05/1.635, allocations: 5.375 kB / 0.7502 GB, free: 66.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001803/1.636, allocations: 426.8 kB / 0.7506 GB, free: 66.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002326/1.639, allocations: 0.9356 MB / 0.7515 GB, free: 66.71 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002529/1.639, allocations: 36.61 kB / 0.7516 GB, free: 66.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01358/1.653, allocations: 15.33 MB / 0.7665 GB, free: 58.14 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/1.653, allocations: 13.25 kB / 0.7666 GB, free: 58.14 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01101/1.664, allocations: 6.368 MB / 0.7728 GB, free: 56.98 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00203/1.666, allocations: 0.6834 MB / 0.7734 GB, free: 56.88 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006485/1.666, allocations: 19.16 kB / 0.7735 GB, free: 56.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001859/1.668, allocations: 126.8 kB / 0.7736 GB, free: 56.88 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005681/1.669, allocations: 195.5 kB / 0.7738 GB, free: 56.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002555/1.669, allocations: 76.17 kB / 0.7738 GB, free: 56.88 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003048/1.672, allocations: 1.631 MB / 0.7754 GB, free: 56.73 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.672, allocations: 0 / 0.7754 GB, free: 56.73 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005073/1.677, allocations: 0.9642 MB / 0.7764 GB, free: 56.73 MB / 442.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 (199): * Single equations (assignments): 192 * 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%) 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.01244/1.69, allocations: 8.274 MB / 0.7845 GB, free: 53.47 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006862/1.697, allocations: 3.989 MB / 0.7884 GB, free: 51.68 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.126e-06/1.697, allocations: 1.25 kB / 0.7884 GB, free: 51.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004136/1.701, allocations: 2.682 MB / 0.791 GB, free: 50.26 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004043/1.705, allocations: 0.6879 MB / 0.7916 GB, free: 50.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02152/1.727, allocations: 9.356 MB / 0.8008 GB, free: 46.38 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004408/1.731, allocations: 3.537 MB / 0.8042 GB, free: 45.08 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003265/1.734, allocations: 0.7705 MB / 0.805 GB, free: 44.99 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002503/1.737, allocations: 2.086 MB / 0.807 GB, free: 43.26 MB / 442.7 MB Notification: Performance of SimCode: time 8.51e-07/1.737, allocations: 0 / 0.807 GB, free: 43.26 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1201/1.857, allocations: 79.75 MB / 0.8849 GB, free: 15.3 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001858/1.857, allocations: 195.6 kB / 0.8851 GB, free: 15.1 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.72/6.577, allocations: 0 / 0.8851 GB, free: 15.1 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat