Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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_NoLoad,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007948/0.0007949, allocations: 99.86 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008087/0.0008089, 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.81 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003237/0.0003239, allocations: 7.984 kB / 306.8 MB, free: 1.445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1144, allocations: 51.51 MB / 358.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.00925/0.1237, allocations: 8.069 MB / 366.4 MB, free: 5.844 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005876/0.1296, allocations: 2.981 MB / 369.4 MB, free: 2.852 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001455/0.1311, allocations: 39.81 kB / 369.4 MB, free: 2.812 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001874/0.133, allocations: 0.5515 MB / 370 MB, free: 2.258 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0024/0.1354, allocations: 0.5943 MB / 370.6 MB, free: 1.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000869/0.1363, allocations: 199.7 kB / 370.7 MB, free: 1.465 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2245/0.3608, allocations: 2.191 MB / 372.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001951/0.3628, allocations: 0.9778 MB / 373.9 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001948/0.3648, allocations: 0.7213 MB / 374.6 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001723/0.3665, allocations: 0.9666 MB / 375.6 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002157/0.3668, allocations: 103.1 kB / 375.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005477/0.3673, allocations: 176 kB / 375.9 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006948/0.368, allocations: 0.5338 MB / 376.4 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000438/0.3685, allocations: 402.4 kB / 376.8 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003368/0.3718, allocations: 2.514 MB / 379.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.3718, allocations: 0 / 379.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3719, allocations: 0 / 379.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.449e-05/0.3719, allocations: 0 / 379.3 MB, free: 9.594 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: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.004608/0.3766, allocations: 1.987 MB / 381.3 MB, free: 8.602 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.3766, allocations: 9.25 kB / 381.3 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004691/0.3771, allocations: 235.8 kB / 381.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006997/0.3778, allocations: 231 kB / 381.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001895/0.3797, allocations: 1.162 MB / 382.9 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.605e-05/0.3798, allocations: 114.5 kB / 383 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002466/0.3801, allocations: 160.7 kB / 383.2 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003381/0.3835, allocations: 2.021 MB / 385.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.525e-05/0.3835, allocations: 6.25 kB / 385.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001462/0.3837, allocations: 63.03 kB / 385.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.376e-05/0.3838, allocations: 76.11 kB / 385.4 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002771/0.3866, allocations: 1.676 MB / 387 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009532/0.3961, allocations: 7.122 MB / 394.2 MB, free: 3.012 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008807/0.397, allocations: 478.9 kB / 394.6 MB, free: 2.777 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004416/0.3975, allocations: 282.5 kB / 394.9 MB, free: 2.645 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000215/0.3977, allocations: 119.6 kB / 395 MB, free: 2.539 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.3978, allocations: 45.17 kB / 395.1 MB, free: 2.492 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.585e-06/0.3978, allocations: 0 / 395.1 MB, free: 2.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.006587/0.4044, allocations: 3.141 MB / 398.2 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.213e-05/0.4044, allocations: 57.88 kB / 398.3 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00225/0.4067, allocations: 1.62 MB / 399.9 MB, free: 15.8 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.839e-05/0.4067, allocations: 36.92 kB / 399.9 MB, free: 15.77 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008695/0.4076, allocations: 1.028 MB / 400.9 MB, free: 14.86 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002149/0.4078, allocations: 239.2 kB / 401.2 MB, free: 14.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.734e-05/0.4079, allocations: 34.47 kB / 401.2 MB, free: 14.63 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002034/0.4081, allocations: 372.6 kB / 401.6 MB, free: 14.28 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009045/0.409, allocations: 0.5284 MB / 402.1 MB, free: 14.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/0.4105, allocations: 1.462 MB / 403.6 MB, free: 12.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001188/0.4117, allocations: 0.8114 MB / 404.4 MB, free: 11.61 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/0.4118, allocations: 8 kB / 404.4 MB, free: 11.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003412/0.4152, allocations: 2.175 MB / 406.6 MB, free: 9.414 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.303e-05/0.4152, allocations: 18.08 kB / 406.6 MB, free: 9.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.353e-05/0.4153, allocations: 40 kB / 406.6 MB, free: 9.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005678/0.4158, allocations: 231.1 kB / 406.8 MB, free: 9.125 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/0.417, allocations: 411.2 kB / 407.2 MB, free: 8.723 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001634/0.4186, allocations: 1.704 MB / 409 MB, free: 6.879 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001422/0.4201, allocations: 155.4 kB / 409.1 MB, free: 6.727 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001166/0.4202, allocations: 92 kB / 409.2 MB, free: 6.637 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * 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.001059/0.4213, allocations: 0.5906 MB / 409.8 MB, free: 6.035 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002323/0.4215, allocations: 154 kB / 409.9 MB, free: 5.883 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001916/0.4234, allocations: 1.11 MB / 411 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.4234, allocations: 15.92 kB / 411.1 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.4235, allocations: 0 / 411.1 MB, free: 4.734 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.4235, allocations: 4 kB / 411.1 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004307/0.4278, allocations: 2.776 MB / 413.8 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.4278, allocations: 0 / 413.8 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004742/0.4283, allocations: 128 kB / 414 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004028/0.4287, allocations: 166.4 kB / 414.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.59e-05/0.4287, allocations: 16 kB / 414.1 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001488/0.4302, allocations: 1.655 MB / 415.8 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.4303, allocations: 0 / 415.8 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002807/0.4331, allocations: 1.669 MB / 417.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006177/0.4337, allocations: 299.1 kB / 417.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002803/0.434, allocations: 16 kB / 417.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007194/0.4347, allocations: 60 kB / 417.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.4349, allocations: 44.5 kB / 417.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.684e-05/0.4349, allocations: 19.98 kB / 417.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001939/0.4369, allocations: 1.067 MB / 419 MB, free: 12.55 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4369, allocations: 2.297 kB / 419 MB, free: 12.55 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001755/0.4386, allocations: 367.9 kB / 419.3 MB, free: 12.2 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (speed.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 (60): * Single equations (assignments): 57 * 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 Backend phase and start with SimCode phase: time 0.003002/0.4416, allocations: 2.232 MB / 421.6 MB, free: 9.906 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002764/0.4444, allocations: 1.635 MB / 423.2 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.4444, allocations: 0 / 423.2 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001063/0.4455, allocations: 0.7676 MB / 424 MB, free: 7.402 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002006/0.4475, allocations: 387.9 kB / 424.3 MB, free: 7.031 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02547/0.473, allocations: 10.93 MB / 435.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00153/0.4746, allocations: 1.469 MB / 436.7 MB, free: 9.797 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001449/0.4761, allocations: 346 kB / 437.1 MB, free: 9.453 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001063/0.4772, allocations: 0.6438 MB / 437.7 MB, free: 8.809 MB / 350.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4772, allocations: 0 / 437.7 MB, free: 8.809 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06767/0.5448, allocations: 33.17 MB / 470.9 MB, free: 8.066 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002138/0.5451, allocations: 231.7 kB / 471.1 MB, free: 7.828 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.628/3.173, allocations: 0 / 471.1 MB, free: 7.828 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.32 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat does not exist to compare? outputFormat=mat