Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",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.001033/0.001032, allocations: 89.39 kB / 16.32 MB, free: 6.449 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.001292/0.001292, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.361/1.361, allocations: 223.2 MB / 241.2 MB, free: 300 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003128/0.0003129, allocations: 4.688 kB / 300.9 MB, free: 6.363 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1155, allocations: 50.42 MB / 351.3 MB, free: 3.93 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.0116/0.1271, allocations: 10.49 MB / 361.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008637/0.1358, allocations: 3.756 MB / 365.6 MB, free: 5.633 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002165/0.138, allocations: 67.62 kB / 365.7 MB, free: 5.566 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001921/0.1399, allocations: 0.6949 MB / 366.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002756/0.1427, allocations: 0.8119 MB / 367.2 MB, free: 4.051 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.1438, allocations: 363.5 kB / 367.5 MB, free: 3.695 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004163/0.148, allocations: 3.368 MB / 370.9 MB, free: 324 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2432/0.3912, allocations: 2.152 MB / 373 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00326/0.3945, allocations: 1.14 MB / 374.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003433/0.398, allocations: 1.603 MB / 375.8 MB, free: 10 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005581/0.3985, allocations: 169.1 kB / 375.9 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001138/0.3997, allocations: 260.5 kB / 376.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001349/0.401, allocations: 0.9243 MB / 377.1 MB, free: 10 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001021/0.4021, allocations: 0.6439 MB / 377.8 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005956/0.408, allocations: 4.538 MB / 382.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.4081, allocations: 0 / 382.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.118e-06/0.4081, allocations: 1.156 kB / 382.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002139/0.4083, allocations: 0 / 382.3 MB, free: 9.418 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.01009/0.4184, allocations: 3.335 MB / 385.6 MB, free: 7.453 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.4185, allocations: 8.812 kB / 385.7 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001774/0.4202, allocations: 423.4 kB / 386.1 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001613/0.4219, allocations: 411.1 kB / 386.5 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004003/0.4259, allocations: 1.999 MB / 388.5 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002562/0.4262, allocations: 241.3 kB / 388.7 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005185/0.4267, allocations: 293.2 kB / 389 MB, free: 6.332 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007568/0.4343, allocations: 3.829 MB / 392.8 MB, free: 5.359 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.923e-05/0.4344, allocations: 14.09 kB / 392.8 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002855/0.4346, allocations: 117.9 kB / 392.9 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002042/0.4349, allocations: 149.7 kB / 393.1 MB, free: 5.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005988/0.4408, allocations: 3.236 MB / 396.3 MB, free: 4.484 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01971/0.4606, allocations: 12.2 MB / 408.5 MB, free: 9.723 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002758/0.4634, allocations: 1.941 MB / 410.5 MB, free: 7.668 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001924/0.4653, allocations: 1.172 MB / 411.6 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003445/0.4657, allocations: 206.9 kB / 411.8 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.347e-05/0.4657, allocations: 51.88 kB / 411.9 MB, free: 6.203 MB / 318.1 MB Notification: Performance of pre-optimization done (n=139): time 2.555e-06/0.4657, allocations: 0 / 411.9 MB, free: 6.203 MB / 318.1 MB Notification: Performance of matching and sorting (n=155): time 0.01415/0.4799, allocations: 7.029 MB / 418.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.797e-05/0.48, allocations: 71.02 kB / 419 MB, free: 14.99 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003287/0.4833, allocations: 2.016 MB / 421 MB, free: 12.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.4834, allocations: 53.7 kB / 421.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001111/0.4845, allocations: 1.458 MB / 422.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004662/0.485, allocations: 0.526 MB / 423 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.4851, allocations: 36 kB / 423.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.4853, allocations: 385.8 kB / 423.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001371/0.4867, allocations: 0.8706 MB / 424.3 MB, free: 9.594 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001728/0.4884, allocations: 1.441 MB / 425.8 MB, free: 7.914 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001646/0.4901, allocations: 1.118 MB / 426.9 MB, free: 6.816 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/0.4901, allocations: 4 kB / 426.9 MB, free: 6.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005174/0.4953, allocations: 3.007 MB / 429.9 MB, free: 3.883 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.492e-05/0.4953, allocations: 12 kB / 429.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.863e-05/0.4954, allocations: 20 kB / 429.9 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008752/0.4962, allocations: 392.8 kB / 430.3 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001593/0.4978, allocations: 471.4 kB / 430.8 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006222/0.5041, allocations: 6.142 MB / 436.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001858/0.506, allocations: 143.7 kB / 437.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001427/0.5061, allocations: 79.98 kB / 437.1 MB, free: 12.28 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002126/0.5082, allocations: 0.9344 MB / 438.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004276/0.5087, allocations: 217.4 kB / 438.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004179/0.5129, allocations: 2.596 MB / 440.9 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.48e-05/0.5129, allocations: 16 kB / 440.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.5129, allocations: 4 kB / 440.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/0.5129, allocations: 7.969 kB / 440.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009062/0.522, allocations: 5.845 MB / 446.7 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/0.522, allocations: 4 kB / 446.8 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/0.5232, allocations: 295.5 kB / 447 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009226/0.5241, allocations: 399.4 kB / 447.4 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001107/0.5242, allocations: 43.98 kB / 447.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007301/0.5316, allocations: 7.585 MB / 455.1 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.393e-06/0.5316, allocations: 7.938 kB / 455.1 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006055/0.5376, allocations: 3.827 MB / 458.9 MB, free: 5.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001524/0.5392, allocations: 498.1 kB / 459.4 MB, free: 5.223 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003587/0.5396, allocations: 39.98 kB / 459.4 MB, free: 5.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/0.5407, allocations: 95.89 kB / 459.5 MB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002499/0.541, allocations: 113 kB / 459.6 MB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/0.5411, allocations: 51.98 kB / 459.7 MB, free: 4.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00242/0.5435, allocations: 1.37 MB / 461 MB, free: 3.539 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5435, allocations: 192 / 461 MB, free: 3.539 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002342/0.5459, allocations: 0.5586 MB / 461.6 MB, free: 2.98 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * 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 (146): * Single equations (assignments): 142 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 9,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006052/0.5519, allocations: 4.46 MB / 466.1 MB, free: 14.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00432/0.5563, allocations: 2.621 MB / 468.7 MB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/0.5563, allocations: 0 / 468.7 MB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002251/0.5586, allocations: 1.565 MB / 470.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003065/0.5616, allocations: 0.5448 MB / 470.8 MB, free: 9.586 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03457/0.5962, allocations: 18.46 MB / 489.3 MB, free: 5.816 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00222/0.5985, allocations: 2.255 MB / 491.5 MB, free: 3.531 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001931/0.6004, allocations: 0.5298 MB / 492 MB, free: 3 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001659/0.6021, allocations: 1.187 MB / 493.2 MB, free: 1.812 MB / 398.1 MB Notification: Performance of SimCode: time 1.062e-06/0.6021, allocations: 4 kB / 493.2 MB, free: 1.809 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.279/0.8811, allocations: 51.02 MB / 0.5315 GB, free: 141.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001646/0.8813, allocations: 236.1 kB / 0.5317 GB, free: 141.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.016/3.897, allocations: 2.969 kB / 0.5317 GB, free: 141.7 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat