Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.0008323/0.0008327, allocations: 91.36 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009294/0.0009295, allocations: 194.9 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 227.4 MB / 246 MB, free: 10.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002381/0.0002382, allocations: 8 kB / 306.8 MB, free: 1.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1147, allocations: 51.5 MB / 358.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase): time 0.2452/0.36, allocations: 23.85 MB / 382.2 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01631/0.3764, allocations: 7.013 MB / 389.2 MB, free: 4.652 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006787/0.3832, allocations: 162.4 kB / 389.4 MB, free: 4.613 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005662/0.3889, allocations: 1.263 MB / 390.6 MB, free: 3.984 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009872/0.3988, allocations: 1.938 MB / 392.6 MB, free: 2.738 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004763/0.4036, allocations: 1.031 MB / 393.6 MB, free: 2.125 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01612/0.4197, allocations: 8.7 MB / 402.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008869/0.4286, allocations: 5.218 MB / 407.5 MB, free: 10.9 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006322/0.435, allocations: 2.799 MB / 410.3 MB, free: 8.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007994/0.443, allocations: 3.587 MB / 413.9 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002473/0.4455, allocations: 464 kB / 414.4 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004706/0.4502, allocations: 0.6677 MB / 415 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003053/0.4533, allocations: 1.705 MB / 416.7 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00443/0.4578, allocations: 1.627 MB / 418.4 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01728/0.4751, allocations: 12.22 MB / 430.6 MB, free: 4.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.4751, allocations: 0 / 430.6 MB, free: 4.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.4751, allocations: 0 / 430.6 MB, free: 4.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000451/0.4756, allocations: 0 / 430.6 MB, free: 4.297 MB / 334.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.02217/0.4977, allocations: 7.996 MB / 438.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.4978, allocations: 8.031 kB / 438.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003575/0.5014, allocations: 0.9919 MB / 439.6 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0107/0.5121, allocations: 1.766 MB / 441.3 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01133/0.5235, allocations: 4.793 MB / 446.1 MB, free: 4.551 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006138/0.5241, allocations: 0.5493 MB / 446.7 MB, free: 4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002874/0.527, allocations: 0.6991 MB / 447.4 MB, free: 3.301 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02624/0.5532, allocations: 9.751 MB / 457.1 MB, free: 9.473 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002051/0.5535, allocations: 11.91 kB / 457.1 MB, free: 9.461 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001237/0.5547, allocations: 296 kB / 457.4 MB, free: 9.172 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003511/0.5551, allocations: 350.6 kB / 457.8 MB, free: 8.828 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01958/0.5747, allocations: 8.291 MB / 466.1 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05997/0.6347, allocations: 31.03 MB / 497.1 MB, free: 0.707 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0165/0.6512, allocations: 17.24 MB / 0.5023 GB, free: 13.54 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006738/0.658, allocations: 3.745 MB / 0.5059 GB, free: 9.773 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01677/0.6748, allocations: 9.368 MB / 0.5151 GB, free: 144 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.646e-05/0.6749, allocations: 60.78 kB / 0.5151 GB, free: 72 kB / 430.1 MB Notification: Performance of pre-optimization done (n=281): time 4.609e-06/0.6749, allocations: 7.938 kB / 0.5152 GB, free: 64 kB / 430.1 MB Notification: Performance of matching and sorting (n=289): time 0.02838/0.7033, allocations: 12.52 MB / 0.5274 GB, free: 3.242 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.7035, allocations: 85.69 kB / 0.5275 GB, free: 3.145 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4094/1.113, allocations: 3.78 MB / 0.5312 GB, free: 134.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008688/1.114, allocations: 74.67 kB / 0.5312 GB, free: 134.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004339/1.118, allocations: 3.254 MB / 0.5344 GB, free: 133.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001885/1.12, allocations: 0.9893 MB / 0.5354 GB, free: 132.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002607/1.12, allocations: 75.38 kB / 0.5354 GB, free: 132.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002818/1.121, allocations: 451 kB / 0.5359 GB, free: 132.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003336/1.124, allocations: 1.539 MB / 0.5374 GB, free: 131.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003955/1.128, allocations: 2.692 MB / 0.54 GB, free: 129.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004617/1.133, allocations: 2.019 MB / 0.542 GB, free: 128.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.241e-05/1.133, allocations: 10.38 kB / 0.542 GB, free: 128.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.01222/1.145, allocations: 5.355 MB / 0.5472 GB, free: 126.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.216e-05/1.145, allocations: 20.69 kB / 0.5472 GB, free: 126.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001062/1.145, allocations: 35.94 kB / 0.5473 GB, free: 126.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001665/1.147, allocations: 0.5691 MB / 0.5478 GB, free: 126.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004044/1.151, allocations: 0.8592 MB / 0.5487 GB, free: 126.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00804/1.159, allocations: 8.787 MB / 0.5572 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003835/1.163, allocations: 185.6 kB / 0.5574 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005103/1.163, allocations: 167.4 kB / 0.5576 GB, free: 119.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 (446): * Single equations (assignments): 440 * 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%) 8,(1,100.0%) 1,(3,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004843/1.168, allocations: 2.153 MB / 0.5597 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00113/1.169, allocations: 411.9 kB / 0.5601 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008112/1.177, allocations: 4.82 MB / 0.5648 GB, free: 115.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.019e-05/1.178, allocations: 28.12 kB / 0.5648 GB, free: 115.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-05/1.178, allocations: 13.88 kB / 0.5648 GB, free: 115.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.428e-05/1.178, allocations: 12.17 kB / 0.5648 GB, free: 115.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01831/1.196, allocations: 11.03 MB / 0.5756 GB, free: 110.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.344e-05/1.196, allocations: 3.875 kB / 0.5756 GB, free: 110.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001865/1.198, allocations: 454.3 kB / 0.576 GB, free: 110.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00244/1.2, allocations: 1.041 MB / 0.5771 GB, free: 110.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002552/1.201, allocations: 82.5 kB / 0.5771 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01501/1.216, allocations: 17.47 MB / 0.5942 GB, free: 92.36 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.543e-06/1.216, allocations: 8.031 kB / 0.5942 GB, free: 92.35 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01026/1.226, allocations: 6.876 MB / 0.6009 GB, free: 85.27 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002575/1.229, allocations: 0.8277 MB / 0.6017 GB, free: 84.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009791/1.23, allocations: 71.94 kB / 0.6018 GB, free: 84.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001983/1.232, allocations: 151.9 kB / 0.6019 GB, free: 84.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005499/1.232, allocations: 217.8 kB / 0.6021 GB, free: 83.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001716/1.232, allocations: 87.97 kB / 0.6022 GB, free: 83.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003874/1.236, allocations: 2.553 MB / 0.6047 GB, free: 81.33 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.236, allocations: 0 / 0.6047 GB, free: 81.33 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006042/1.242, allocations: 1.245 MB / 0.6059 GB, free: 80.09 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 (217): * Single equations (assignments): 210 * 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%) 8,(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.01027/1.253, allocations: 7.563 MB / 0.6133 GB, free: 72.31 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007923/1.26, allocations: 4.54 MB / 0.6178 GB, free: 67.66 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/1.261, allocations: 4.188 kB / 0.6178 GB, free: 67.65 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004391/1.265, allocations: 3.083 MB / 0.6208 GB, free: 64.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00637/1.271, allocations: 1.141 MB / 0.6219 GB, free: 63.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0857/1.357, allocations: 39.89 MB / 0.6608 GB, free: 20.86 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003883/1.361, allocations: 4.403 MB / 0.6651 GB, free: 16.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00341/1.364, allocations: 0.9107 MB / 0.666 GB, free: 15.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00344/1.368, allocations: 2.772 MB / 0.6687 GB, free: 12.74 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/1.368, allocations: 0 / 0.6687 GB, free: 12.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.401/1.769, allocations: 106.6 MB / 0.7728 GB, free: 117.8 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003396/1.769, allocations: 293.2 kB / 0.7731 GB, free: 117.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.556/6.325, allocations: 4 kB / 0.7731 GB, free: 117.5 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase.fmu > Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat