Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008239/0.0008242, allocations: 88.67 kB / 16.31 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008867/0.0008867, allocations: 175.5 kB / 17.21 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 223.2 MB / 241.2 MB, free: 284 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002835/0.0002836, allocations: 8 kB / 300.9 MB, free: 6.32 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09611/0.09642, allocations: 50.42 MB / 351.4 MB, free: 3.891 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase): time 0.2242/0.3206, allocations: 22.36 MB / 373.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0151/0.3358, allocations: 6.572 MB / 380.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006162/0.342, allocations: 157.1 kB / 380.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006049/0.3481, allocations: 1.227 MB / 381.7 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009802/0.3579, allocations: 1.886 MB / 383.6 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004827/0.3628, allocations: 0.9942 MB / 384.6 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01244/0.3752, allocations: 8.386 MB / 392.9 MB, free: 6.605 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0108/0.3861, allocations: 5.202 MB / 398.1 MB, free: 4.184 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006585/0.3927, allocations: 2.725 MB / 400.9 MB, free: 2.785 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008822/0.4016, allocations: 3.525 MB / 404.4 MB, free: 348 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002716/0.4044, allocations: 468 kB / 404.9 MB, free: 15.88 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005649/0.41, allocations: 0.6413 MB / 405.5 MB, free: 15.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00453/0.4146, allocations: 1.695 MB / 407.2 MB, free: 13.58 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005498/0.4201, allocations: 1.595 MB / 408.8 MB, free: 11.97 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01804/0.4382, allocations: 12.09 MB / 420.9 MB, free: 164 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.4382, allocations: 3.938 kB / 420.9 MB, free: 160 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.4382, allocations: 0 / 420.9 MB, free: 160 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005211/0.4388, allocations: 0 / 420.9 MB, free: 160 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02307/0.4619, allocations: 7.829 MB / 428.7 MB, free: 8.324 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.4619, allocations: 12.03 kB / 428.7 MB, free: 8.312 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00341/0.4653, allocations: 0.9927 MB / 429.7 MB, free: 7.312 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009952/0.4753, allocations: 1.749 MB / 431.5 MB, free: 5.562 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01192/0.4872, allocations: 4.692 MB / 436.2 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007468/0.488, allocations: 0.5507 MB / 436.7 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002525/0.4906, allocations: 0.7097 MB / 437.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02863/0.5192, allocations: 9.744 MB / 447.2 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004429/0.5198, allocations: 18.23 kB / 447.2 MB, free: 5.801 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002311/0.5221, allocations: 298.7 kB / 447.5 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005102/0.5226, allocations: 354.6 kB / 447.8 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02172/0.5444, allocations: 8.291 MB / 456.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0802/0.6246, allocations: 30.61 MB / 486.7 MB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02161/0.6463, allocations: 16.07 MB / 0.491 GB, free: 11.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007389/0.6537, allocations: 3.108 MB / 0.494 GB, free: 8.789 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02159/0.6753, allocations: 8.125 MB / 0.502 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.024e-05/0.6755, allocations: 64.77 kB / 0.502 GB, free: 448 kB / 414.1 MB Notification: Performance of pre-optimization done (n=281): time 6.612e-06/0.6755, allocations: 4 kB / 0.502 GB, free: 444 kB / 414.1 MB Notification: Performance of matching and sorting (n=289): time 0.02981/0.7053, allocations: 11.79 MB / 0.5136 GB, free: 4.34 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.883e-05/0.7054, allocations: 81.69 kB / 0.5136 GB, free: 4.246 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009497/0.7149, allocations: 3.606 MB / 0.5171 GB, free: 0.6602 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000726/0.7157, allocations: 77.7 kB / 0.5172 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003751/0.7195, allocations: 3.18 MB / 0.5203 GB, free: 13.36 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001777/0.7213, allocations: 0.9974 MB / 0.5213 GB, free: 12.35 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006433/0.722, allocations: 72 kB / 0.5214 GB, free: 12.28 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004854/0.7225, allocations: 449.9 kB / 0.5218 GB, free: 11.83 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004337/0.7268, allocations: 1.487 MB / 0.5233 GB, free: 10.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005643/0.7325, allocations: 2.627 MB / 0.5258 GB, free: 7.219 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005253/0.7378, allocations: 1.967 MB / 0.5277 GB, free: 5.234 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.921e-05/0.7379, allocations: 8 kB / 0.5277 GB, free: 5.227 MB / 446.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.01385/0.7517, allocations: 5.031 MB / 0.5327 GB, free: 120 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.581e-05/0.7519, allocations: 23.94 kB / 0.5327 GB, free: 96 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.134e-05/0.752, allocations: 39.95 kB / 0.5327 GB, free: 56 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3916/1.144, allocations: 404.1 kB / 0.5331 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004186/1.148, allocations: 0.8645 MB / 0.534 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006439/1.154, allocations: 7.346 MB / 0.5411 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004067/1.158, allocations: 178.3 kB / 0.5413 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007042/1.159, allocations: 166.5 kB / 0.5415 GB, free: 132.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 162 * 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 (451): * Single equations (assignments): 445 * 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 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005603/1.165, allocations: 2.141 MB / 0.5435 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001298/1.166, allocations: 399.1 kB / 0.5439 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009012/1.175, allocations: 4.491 MB / 0.5483 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.05e-05/1.175, allocations: 33.11 kB / 0.5483 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.079e-05/1.175, allocations: 12.16 kB / 0.5484 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.27e-05/1.175, allocations: 14.73 kB / 0.5484 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02018/1.195, allocations: 10.5 MB / 0.5586 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/1.195, allocations: 11.16 kB / 0.5586 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001787/1.197, allocations: 448.8 kB / 0.5591 GB, free: 124.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001944/1.199, allocations: 0.8654 MB / 0.5599 GB, free: 124.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002926/1.2, allocations: 85.47 kB / 0.56 GB, free: 124.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0141/1.214, allocations: 16.21 MB / 0.5758 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.247e-06/1.214, allocations: 8.062 kB / 0.5758 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01137/1.225, allocations: 6.454 MB / 0.5821 GB, free: 108.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002567/1.228, allocations: 0.8008 MB / 0.5829 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001249/1.229, allocations: 66.3 kB / 0.583 GB, free: 108.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002455/1.231, allocations: 154.4 kB / 0.5831 GB, free: 108.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005904/1.232, allocations: 219.7 kB / 0.5833 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002709/1.232, allocations: 88.45 kB / 0.5834 GB, free: 108.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004814/1.237, allocations: 2.433 MB / 0.5858 GB, free: 106.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.272e-06/1.237, allocations: 416 / 0.5858 GB, free: 106.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005123/1.242, allocations: 1.216 MB / 0.587 GB, free: 105.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (vfController3.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,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * 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 (220): * Single equations (assignments): 213 * 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 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009548/1.252, allocations: 7.135 MB / 0.5939 GB, free: 98.32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00653/1.258, allocations: 4.364 MB / 0.5982 GB, free: 93.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.185e-05/1.259, allocations: 4.5 kB / 0.5982 GB, free: 93.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00426/1.263, allocations: 3.009 MB / 0.6011 GB, free: 90.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007433/1.27, allocations: 1.072 MB / 0.6022 GB, free: 89.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08096/1.351, allocations: 38.09 MB / 0.6394 GB, free: 49.07 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003605/1.355, allocations: 4.335 MB / 0.6436 GB, free: 44.69 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003234/1.358, allocations: 0.8981 MB / 0.6445 GB, free: 43.79 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002838/1.361, allocations: 2.71 MB / 0.6472 GB, free: 41.08 MB / 446.1 MB Notification: Performance of SimCode: time 1.743e-06/1.361, allocations: 0 / 0.6472 GB, free: 41.08 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3881/1.749, allocations: 101.7 MB / 0.7465 GB, free: 122.3 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000197/1.749, allocations: 293.2 kB / 0.7467 GB, free: 121.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.634/6.384, allocations: 0 / 0.7467 GB, free: 121.9 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat