Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002566/0.002572, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.283/2.283, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001152/0.001152, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003952/0.0003952, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0998/0.1002, allocations: 47.57 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad): time 0.01269/0.1129, allocations: 7.266 MB / 381.9 MB, free: 8.055 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00769/0.1207, allocations: 3.073 MB / 385 MB, free: 4.969 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001393/0.1221, allocations: 31.88 kB / 385 MB, free: 4.938 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002452/0.1246, allocations: 0.5715 MB / 385.6 MB, free: 4.363 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003264/0.1279, allocations: 0.6387 MB / 386.2 MB, free: 3.723 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001214/0.1291, allocations: 219.6 kB / 386.4 MB, free: 3.508 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003413/0.1326, allocations: 1.396 MB / 387.8 MB, free: 2.109 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001829/0.1344, allocations: 0.9453 MB / 388.8 MB, free: 1.133 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001294/0.1357, allocations: 0.6577 MB / 389.4 MB, free: 484 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2597/0.3954, allocations: 0.8202 MB / 390.2 MB, free: 10.33 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005823/0.396, allocations: 101.8 kB / 390.3 MB, free: 10.33 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009301/0.397, allocations: 166.1 kB / 390.5 MB, free: 10.33 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009442/0.398, allocations: 0.5 MB / 391 MB, free: 10.33 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009308/0.3989, allocations: 393.2 kB / 391.4 MB, free: 10.3 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004676/0.4036, allocations: 2.47 MB / 393.9 MB, free: 10.15 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.4036, allocations: 0 / 393.9 MB, free: 10.15 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.387e-06/0.4037, allocations: 2.062 kB / 393.9 MB, free: 10.15 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001224/0.4038, allocations: 0 / 393.9 MB, free: 10.15 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.006981/0.4108, allocations: 1.943 MB / 395.8 MB, free: 9.176 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.4108, allocations: 9.812 kB / 395.8 MB, free: 9.176 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009957/0.4119, allocations: 233.3 kB / 396 MB, free: 9.129 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001087/0.413, allocations: 227.5 kB / 396.3 MB, free: 9.027 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003622/0.4166, allocations: 1.135 MB / 397.4 MB, free: 8.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001397/0.4168, allocations: 117.5 kB / 397.5 MB, free: 8.656 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005014/0.4173, allocations: 155.1 kB / 397.7 MB, free: 8.652 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006279/0.4236, allocations: 1.978 MB / 399.6 MB, free: 8.484 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.74e-05/0.4237, allocations: 5.281 kB / 399.7 MB, free: 8.484 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002298/0.424, allocations: 61.06 kB / 399.7 MB, free: 8.484 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001396/0.4241, allocations: 75.97 kB / 399.8 MB, free: 8.48 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005498/0.4296, allocations: 1.64 MB / 401.4 MB, free: 8.465 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01699/0.4466, allocations: 6.948 MB / 408.4 MB, free: 4.766 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/0.448, allocations: 442.9 kB / 408.8 MB, free: 4.555 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002785/0.4483, allocations: 115.8 kB / 408.9 MB, free: 4.449 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/0.4483, allocations: 37.22 kB / 409 MB, free: 4.406 MB / 282.7 MB Notification: Performance of pre-optimization done (n=47): time 2.845e-06/0.4483, allocations: 0 / 409 MB, free: 4.406 MB / 282.7 MB Notification: Performance of matching and sorting (n=63): time 0.01184/0.4602, allocations: 3.298 MB / 412.3 MB, free: 2.527 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003059/0.4633, allocations: 2.21 MB / 414.5 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003468/0.4668, allocations: 1.585 MB / 416.1 MB, free: 15.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001681/0.467, allocations: 37.02 kB / 416.1 MB, free: 15.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00105/0.4681, allocations: 0.9951 MB / 417.1 MB, free: 14.74 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003614/0.4684, allocations: 240 kB / 417.3 MB, free: 14.55 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.4686, allocations: 35.31 kB / 417.4 MB, free: 14.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002093/0.4688, allocations: 372.6 kB / 417.7 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001399/0.4702, allocations: 0.5082 MB / 418.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002215/0.4724, allocations: 1.454 MB / 419.7 MB, free: 12.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00194/0.4744, allocations: 0.7919 MB / 420.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.996e-05/0.4745, allocations: 12.31 kB / 420.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.005559/0.48, allocations: 2.065 MB / 422.5 MB, free: 10.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.861e-05/0.4801, allocations: 20 kB / 422.6 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.898e-05/0.4802, allocations: 32 kB / 422.6 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009327/0.4811, allocations: 226.8 kB / 422.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002413/0.4836, allocations: 405.6 kB / 423.2 MB, free: 9.875 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00255/0.4861, allocations: 1.736 MB / 425 MB, free: 8.023 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002522/0.4887, allocations: 135.4 kB / 425.1 MB, free: 7.891 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002788/0.489, allocations: 99.98 kB / 425.2 MB, free: 7.793 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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 (204): * Single equations (assignments): 201 * 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: 1 * 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: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001607/0.4906, allocations: 0.5929 MB / 425.8 MB, free: 7.223 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005372/0.4912, allocations: 150.1 kB / 425.9 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003287/0.4945, allocations: 1.105 MB / 427 MB, free: 5.953 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/0.4945, allocations: 7.953 kB / 427 MB, free: 5.945 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.4945, allocations: 0 / 427 MB, free: 5.945 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.741e-05/0.4946, allocations: 9.047 kB / 427 MB, free: 5.938 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00961/0.5042, allocations: 3.359 MB / 430.4 MB, free: 2.488 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.5042, allocations: 4 kB / 430.4 MB, free: 2.484 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008201/0.5051, allocations: 114.9 kB / 430.5 MB, free: 2.379 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001146/0.5062, allocations: 232.1 kB / 430.7 MB, free: 2.145 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.549e-05/0.5063, allocations: 19.98 kB / 430.8 MB, free: 2.125 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005996/0.5123, allocations: 3.765 MB / 434.5 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003275/0.5156, allocations: 2.048 MB / 436.6 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004711/0.5204, allocations: 2.046 MB / 438.6 MB, free: 9.668 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00113/0.5215, allocations: 303.1 kB / 438.9 MB, free: 9.352 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003166/0.5219, allocations: 16 kB / 438.9 MB, free: 9.336 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001224/0.5231, allocations: 51.94 kB / 439 MB, free: 9.285 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002241/0.5233, allocations: 71.16 kB / 439.1 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.61e-05/0.5234, allocations: 24 kB / 439.1 MB, free: 9.199 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00252/0.526, allocations: 1.04 MB / 440.1 MB, free: 8.164 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.526, allocations: 0 / 440.1 MB, free: 8.164 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002583/0.5286, allocations: 388 kB / 440.5 MB, free: 7.785 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.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 (57): * Single equations (assignments): 54 * 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: 2 * 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: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.005716/0.5343, allocations: 4.005 MB / 444.5 MB, free: 3.621 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004059/0.5384, allocations: 1.601 MB / 446.1 MB, free: 1.977 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.034e-05/0.5385, allocations: 4 kB / 446.1 MB, free: 1.973 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002069/0.5405, allocations: 0.8255 MB / 446.9 MB, free: 1.102 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003161/0.5437, allocations: 384.3 kB / 447.3 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04674/0.5905, allocations: 33.67 MB / 481 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001768/0.5923, allocations: 1.492 MB / 482.5 MB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001521/0.5939, allocations: 0.6203 MB / 483.1 MB, free: 11.84 MB / 362.7 MB Notification: Performance of SimCode: time 9.22e-07/0.5939, allocations: 0 / 483.1 MB, free: 11.84 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.517/4.111, allocations: 52.97 MB / 0.5235 GB, free: 6.801 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.04 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_NoLoad.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad_res.mat does not exist to compare? outputFormat=mat