Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.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 3.2.3+maint.om/package.mo", uses=false) 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 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.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009768/0.0009768, allocations: 95.31 kB / 16.93 MB, free: 6.445 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.001185/0.001185, allocations: 184.6 kB / 17.83 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.409/1.409, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004602/0.0004603, allocations: 12 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1058, allocations: 47.58 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.019/0.1249, allocations: 17.41 MB / 345.8 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01381/0.1388, allocations: 6.244 MB / 352.1 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005247/0.1441, allocations: 115.4 kB / 352.2 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004439/0.1485, allocations: 1.115 MB / 353.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008327/0.1569, allocations: 1.815 MB / 355.1 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00393/0.1609, allocations: 0.8793 MB / 356 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01134/0.1722, allocations: 4.368 MB / 360.4 MB, free: 3.949 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005889/0.1782, allocations: 3.69 MB / 364.1 MB, free: 212 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003937/0.1821, allocations: 2.02 MB / 366.1 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00512/0.1873, allocations: 2.513 MB / 368.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001613/0.1889, allocations: 336 kB / 368.9 MB, free: 11.33 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002581/0.1915, allocations: 0.5582 MB / 369.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001554/0.1931, allocations: 1.359 MB / 370.8 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0021/0.1952, allocations: 1.194 MB / 372 MB, free: 8.203 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2161/0.4113, allocations: 8.674 MB / 380.7 MB, free: 18.55 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.4114, allocations: 1.469 kB / 380.7 MB, free: 18.55 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.4114, allocations: 1.375 kB / 380.7 MB, free: 18.55 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004488/0.4119, allocations: 0 / 380.7 MB, free: 18.55 MB / 318.1 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.0176/0.4295, allocations: 5.839 MB / 386.6 MB, free: 16.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.4295, allocations: 9.406 kB / 386.6 MB, free: 16.27 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002852/0.4324, allocations: 0.7299 MB / 387.3 MB, free: 16.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00618/0.4386, allocations: 1.073 MB / 388.4 MB, free: 15.87 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01021/0.4488, allocations: 3.396 MB / 391.8 MB, free: 15.22 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005579/0.4494, allocations: 422.4 kB / 392.2 MB, free: 15.2 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001869/0.4513, allocations: 0.5236 MB / 392.7 MB, free: 15.2 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01435/0.4657, allocations: 6.98 MB / 399.7 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001452/0.4659, allocations: 13.19 kB / 399.7 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005201/0.4664, allocations: 217.6 kB / 399.9 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002294/0.4666, allocations: 262.2 kB / 400.2 MB, free: 14.83 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01236/0.479, allocations: 5.916 MB / 406.1 MB, free: 14.49 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03796/0.517, allocations: 22.43 MB / 428.5 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009121/0.5262, allocations: 8.282 MB / 436.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0109/0.5371, allocations: 5.156 MB / 441.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001176/0.5373, allocations: 60.55 kB / 442 MB, free: 14.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=234): time 5.19e-06/0.5373, allocations: 0 / 442 MB, free: 14.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=256): time 0.02515/0.5625, allocations: 11.76 MB / 453.8 MB, free: 2.621 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.322e-05/0.5626, allocations: 77.42 kB / 453.8 MB, free: 2.531 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004675/0.5673, allocations: 3.009 MB / 456.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003927/0.5677, allocations: 65.7 kB / 456.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001874/0.5696, allocations: 2.486 MB / 459.4 MB, free: 12.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008944/0.5705, allocations: 0.8834 MB / 460.3 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001554/0.5706, allocations: 64 kB / 460.3 MB, free: 12.01 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002405/0.5709, allocations: 436.8 kB / 460.8 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002303/0.5732, allocations: 1.383 MB / 462.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002906/0.5761, allocations: 2.355 MB / 464.5 MB, free: 7.418 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00268/0.5788, allocations: 1.784 MB / 466.3 MB, free: 5.645 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-05/0.5788, allocations: 8 kB / 466.3 MB, free: 5.637 MB / 366.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.008206/0.5871, allocations: 4.803 MB / 471.1 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.204e-05/0.5871, allocations: 23.94 kB / 471.1 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.198e-05/0.5872, allocations: 32 kB / 471.2 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001212/0.5884, allocations: 0.529 MB / 471.7 MB, free: 328 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00297/0.5914, allocations: 0.78 MB / 472.5 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009359/0.6008, allocations: 9.528 MB / 482 MB, free: 5.449 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003417/0.6042, allocations: 199.5 kB / 482.2 MB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004753/0.6047, allocations: 143.9 kB / 482.3 MB, free: 5.117 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 140 * 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 (391): * Single equations (assignments): 384 * 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: 5 * 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: 5 {(1,100.0%) 1,(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00358/0.6083, allocations: 1.585 MB / 483.9 MB, free: 3.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009022/0.6092, allocations: 343.8 kB / 484.3 MB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007367/0.6166, allocations: 4.205 MB / 488.5 MB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.394e-05/0.6167, allocations: 26.3 kB / 488.5 MB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.594e-05/0.6167, allocations: 8 kB / 488.5 MB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.731e-05/0.6167, allocations: 15.95 kB / 488.5 MB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01807/0.6348, allocations: 9.264 MB / 497.8 MB, free: 5.516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.67e-05/0.6349, allocations: 8 kB / 497.8 MB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001843/0.6367, allocations: 456.2 kB / 498.2 MB, free: 5.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001855/0.6386, allocations: 0.7331 MB / 499 MB, free: 4.332 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001967/0.6388, allocations: 71.97 kB / 499 MB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01504/0.6539, allocations: 15.48 MB / 0.5024 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.698e-06/0.6539, allocations: 11.09 kB / 0.5025 GB, free: 3.785 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01077/0.6647, allocations: 6.675 MB / 0.509 GB, free: 12.74 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002455/0.6672, allocations: 0.6997 MB / 0.5097 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000725/0.6679, allocations: 63.98 kB / 0.5097 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001818/0.6698, allocations: 151.9 kB / 0.5099 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004671/0.6702, allocations: 201.2 kB / 0.5101 GB, free: 11.61 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001652/0.6704, allocations: 71.98 kB / 0.5101 GB, free: 11.54 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003508/0.6739, allocations: 2.02 MB / 0.5121 GB, free: 9.535 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.6739, allocations: 0 / 0.5121 GB, free: 9.535 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004678/0.6786, allocations: 1 MB / 0.5131 GB, free: 8.535 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (217): * Single equations (assignments): 209 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01145/0.6901, allocations: 8.775 MB / 0.5216 GB, free: 15.47 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006983/0.6971, allocations: 4.253 MB / 0.5258 GB, free: 11.21 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/0.6972, allocations: 0 / 0.5258 GB, free: 11.21 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004424/0.7016, allocations: 2.833 MB / 0.5286 GB, free: 8.328 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004505/0.7061, allocations: 0.8784 MB / 0.5294 GB, free: 7.449 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2522/0.9584, allocations: 52.14 MB / 0.5803 GB, free: 128.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003442/0.9619, allocations: 3.514 MB / 0.5838 GB, free: 126.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002918/0.9648, allocations: 0.8222 MB / 0.5846 GB, free: 126.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00212/0.9669, allocations: 2.091 MB / 0.5866 GB, free: 125.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.172e-06/0.9669, allocations: 0 / 0.5866 GB, free: 125.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.117/1.084, allocations: 84.36 MB / 0.669 GB, free: 44.87 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001619/1.084, allocations: 218.5 kB / 0.6692 GB, free: 44.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.597/4.681, allocations: 8 kB / 0.6692 GB, free: 44.63 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat