Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00114/0.00114, allocations: 92.59 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001527/0.001527, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002344/0.0002345, allocations: 8 kB / 306.8 MB, free: 1.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.113, allocations: 51.49 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01001/0.1231, allocations: 9.671 MB / 368 MB, free: 4.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006643/0.1297, allocations: 3.471 MB / 371.5 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0018/0.1316, allocations: 59.69 kB / 371.5 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002073/0.1337, allocations: 0.6562 MB / 372.2 MB, free: 68 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2261/0.3598, allocations: 0.7193 MB / 372.9 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001269/0.3611, allocations: 292.7 kB / 373.2 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005275/0.3663, allocations: 2.954 MB / 376.1 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003865/0.3702, allocations: 1.854 MB / 378 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003385/0.3737, allocations: 1.024 MB / 379 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00291/0.3766, allocations: 1.402 MB / 380.4 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000367/0.377, allocations: 152.3 kB / 380.6 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009082/0.3779, allocations: 237.7 kB / 380.8 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001071/0.379, allocations: 0.7981 MB / 381.6 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009282/0.3799, allocations: 0.5659 MB / 382.2 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004251/0.3842, allocations: 3.93 MB / 386.1 MB, free: 7.676 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.3842, allocations: 0 / 386.1 MB, free: 7.676 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3842, allocations: 4 kB / 386.1 MB, free: 7.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.54e-05/0.3843, allocations: 1 kB / 386.1 MB, free: 7.672 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.00577/0.3901, allocations: 2.894 MB / 389 MB, free: 5.945 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.3901, allocations: 10.03 kB / 389 MB, free: 5.945 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004676/0.3906, allocations: 362 kB / 389.3 MB, free: 5.836 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009271/0.3915, allocations: 355.7 kB / 389.7 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002826/0.3944, allocations: 1.715 MB / 391.4 MB, free: 4.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001951/0.3946, allocations: 195.8 kB / 391.6 MB, free: 4.898 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004004/0.395, allocations: 248.5 kB / 391.8 MB, free: 4.898 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005391/0.4004, allocations: 3.267 MB / 395.1 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.897e-05/0.4005, allocations: 6.031 kB / 395.1 MB, free: 3.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002128/0.4007, allocations: 102.2 kB / 395.2 MB, free: 3.527 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001151/0.4008, allocations: 128.4 kB / 395.3 MB, free: 3.504 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00421/0.405, allocations: 2.737 MB / 398.1 MB, free: 2.098 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01495/0.42, allocations: 10.52 MB / 408.6 MB, free: 7.906 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001751/0.4218, allocations: 1.354 MB / 409.9 MB, free: 6.492 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001178/0.423, allocations: 0.7936 MB / 410.7 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002897/0.4233, allocations: 206.1 kB / 410.9 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.4233, allocations: 40.59 kB / 411 MB, free: 5.414 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 2.695e-06/0.4233, allocations: 0 / 411 MB, free: 5.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.01543/0.4388, allocations: 6.954 MB / 417.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.281e-05/0.4389, allocations: 64.41 kB / 418 MB, free: 14.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00317/0.442, allocations: 1.786 MB / 419.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001374/0.4422, allocations: 45.7 kB / 419.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009791/0.4432, allocations: 1.278 MB / 421.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003676/0.4436, allocations: 424 kB / 421.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.589e-05/0.4437, allocations: 36 kB / 421.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.4439, allocations: 361.9 kB / 421.9 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/0.4451, allocations: 0.773 MB / 422.7 MB, free: 9.578 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001587/0.4467, allocations: 1.289 MB / 424 MB, free: 8.062 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001438/0.4481, allocations: 0.9783 MB / 424.9 MB, free: 7.082 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.938e-06/0.4482, allocations: 4 kB / 425 MB, free: 7.078 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00426/0.4524, allocations: 2.47 MB / 427.4 MB, free: 4.586 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.378e-05/0.4525, allocations: 15.94 kB / 427.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.193e-05/0.4525, allocations: 16 kB / 427.5 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006366/0.4531, allocations: 239.6 kB / 427.7 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/0.4545, allocations: 419.3 kB / 428.1 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002488/0.457, allocations: 3.013 MB / 431.1 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001651/0.4587, allocations: 132.3 kB / 431.2 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/0.4588, allocations: 71.98 kB / 431.3 MB, free: 432 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002244/0.4611, allocations: 0.8174 MB / 432.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006218/0.4617, allocations: 185.7 kB / 432.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003611/0.4653, allocations: 2.046 MB / 434.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.76e-05/0.4654, allocations: 14.66 kB / 434.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.4654, allocations: 7.938 kB / 434.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.4654, allocations: 3.984 kB / 434.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00784/0.4732, allocations: 4.758 MB / 439.1 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.842e-06/0.4733, allocations: 0 / 439.1 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/0.4743, allocations: 259.6 kB / 439.4 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004995/0.4748, allocations: 203.5 kB / 439.6 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.682e-05/0.4749, allocations: 31.94 kB / 439.6 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002337/0.4773, allocations: 2.976 MB / 442.6 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.4773, allocations: 4.031 kB / 442.6 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004574/0.4819, allocations: 3.129 MB / 445.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001194/0.4831, allocations: 434.6 kB / 446.2 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002305/0.4833, allocations: 27.95 kB / 446.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000895/0.4842, allocations: 95.86 kB / 446.3 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001623/0.4844, allocations: 88.89 kB / 446.4 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.733e-05/0.4845, allocations: 32 kB / 446.4 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002056/0.4866, allocations: 1.212 MB / 447.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4866, allocations: 0 / 447.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001942/0.4885, allocations: 488 kB / 448.1 MB, free: 15.2 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (121): * Single equations (assignments): 117 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005079/0.4936, allocations: 3.737 MB / 451.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003812/0.4974, allocations: 2.343 MB / 454.2 MB, free: 8.988 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/0.4975, allocations: 4 kB / 454.2 MB, free: 8.984 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001816/0.4993, allocations: 1.339 MB / 455.5 MB, free: 7.574 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002838/0.5021, allocations: 476 kB / 456 MB, free: 7.125 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0282/0.5304, allocations: 15.38 MB / 471.3 MB, free: 6.746 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001709/0.5321, allocations: 2.002 MB / 473.3 MB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001669/0.5338, allocations: 0.498 MB / 473.8 MB, free: 4.211 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001347/0.5352, allocations: 1.019 MB / 474.9 MB, free: 3.191 MB / 382.1 MB Notification: Performance of SimCode: time 1.312e-06/0.5352, allocations: 3.938 kB / 474.9 MB, free: 3.188 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07535/0.6105, allocations: 43.24 MB / 0.506 GB, free: 8.414 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002275/0.6108, allocations: 243.5 kB / 0.5062 GB, free: 8.172 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.821/3.432, allocations: 0 / 0.5062 GB, free: 8.172 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat