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.0009792/0.0009793, allocations: 102.9 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001087/0.001087, allocations: 199.5 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000237/0.0002371, allocations: 8 kB / 306.7 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1016, allocations: 51.5 MB / 358.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.007665/0.1093, allocations: 7.384 MB / 365.6 MB, free: 6.348 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005468/0.1148, allocations: 3.064 MB / 368.7 MB, free: 3.273 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001289/0.1161, allocations: 35.81 kB / 368.7 MB, free: 3.238 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001479/0.1176, allocations: 0.5715 MB / 369.3 MB, free: 2.664 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001868/0.1195, allocations: 0.6465 MB / 369.9 MB, free: 2.016 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005636/0.12, allocations: 207.7 kB / 370.1 MB, free: 1.812 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001878/0.1219, allocations: 1.423 MB / 371.5 MB, free: 400 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.19/0.3119, allocations: 0.9654 MB / 372.5 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001508/0.3135, allocations: 0.6631 MB / 373.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001323/0.3148, allocations: 0.8385 MB / 374 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002769/0.3151, allocations: 100.4 kB / 374.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005692/0.3157, allocations: 171.3 kB / 374.3 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008119/0.3165, allocations: 0.5043 MB / 374.8 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005852/0.3171, allocations: 398.7 kB / 375.2 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003271/0.3204, allocations: 2.485 MB / 377.6 MB, free: 9.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.3204, allocations: 0 / 377.6 MB, free: 9.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.3204, allocations: 0 / 377.6 MB, free: 9.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.728e-05/0.3205, allocations: 1.344 kB / 377.6 MB, free: 9.57 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.004598/0.3251, allocations: 1.984 MB / 379.6 MB, free: 8.574 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.3252, allocations: 12.53 kB / 379.6 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004194/0.3256, allocations: 234.6 kB / 379.9 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007893/0.3264, allocations: 231.7 kB / 380.1 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002357/0.3288, allocations: 1.185 MB / 381.3 MB, free: 8.051 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.328e-05/0.3289, allocations: 111.6 kB / 381.4 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002268/0.3291, allocations: 159.8 kB / 381.5 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003328/0.3324, allocations: 2.017 MB / 383.6 MB, free: 7.863 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.786e-05/0.3325, allocations: 6.312 kB / 383.6 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001568/0.3327, allocations: 66.91 kB / 383.6 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001074/0.3328, allocations: 75.14 kB / 383.7 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002963/0.3357, allocations: 1.671 MB / 385.4 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009593/0.3454, allocations: 7.091 MB / 392.5 MB, free: 3.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000909/0.3463, allocations: 477.2 kB / 392.9 MB, free: 3.496 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002036/0.3465, allocations: 117.5 kB / 393.1 MB, free: 3.391 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.3466, allocations: 41.7 kB / 393.1 MB, free: 3.344 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.464e-06/0.3466, allocations: 5.375 kB / 393.1 MB, free: 3.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.007059/0.3536, allocations: 3.146 MB / 396.2 MB, free: 1.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.895e-05/0.3537, allocations: 63.09 kB / 396.3 MB, free: 1.523 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002262/0.356, allocations: 1.6 MB / 397.9 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.478e-05/0.356, allocations: 37.23 kB / 397.9 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006418/0.3567, allocations: 1.038 MB / 399 MB, free: 15.69 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002017/0.3569, allocations: 235.2 kB / 399.2 MB, free: 15.49 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.205e-05/0.357, allocations: 35.61 kB / 399.2 MB, free: 15.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.3572, allocations: 367.2 kB / 399.6 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009618/0.3581, allocations: 0.5313 MB / 400.1 MB, free: 14.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001537/0.3597, allocations: 1.448 MB / 401.6 MB, free: 13.3 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001191/0.3609, allocations: 0.8105 MB / 402.4 MB, free: 12.88 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.799e-05/0.3609, allocations: 9.938 kB / 402.4 MB, free: 12.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003728/0.3647, allocations: 2.17 MB / 404.6 MB, free: 11.15 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.703e-05/0.3647, allocations: 20.88 kB / 404.6 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.51e-05/0.3648, allocations: 36 kB / 404.6 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005867/0.3654, allocations: 234.4 kB / 404.9 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/0.3665, allocations: 403.3 kB / 405.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00161/0.3682, allocations: 1.737 MB / 407 MB, free: 8.586 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/0.3698, allocations: 155.4 kB / 407.1 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/0.3699, allocations: 92 kB / 407.2 MB, free: 8.344 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.001036/0.371, allocations: 0.5951 MB / 407.8 MB, free: 7.738 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002809/0.3713, allocations: 150.1 kB / 408 MB, free: 7.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001961/0.3732, allocations: 1.11 MB / 409.1 MB, free: 6.457 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.3733, allocations: 5.094 kB / 409.1 MB, free: 6.453 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.3733, allocations: 4 kB / 409.1 MB, free: 6.449 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.555e-06/0.3733, allocations: 0 / 409.1 MB, free: 6.449 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004822/0.3781, allocations: 2.772 MB / 411.9 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.754e-06/0.3781, allocations: 0 / 411.9 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005154/0.3787, allocations: 123.8 kB / 412 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004343/0.3791, allocations: 170.6 kB / 412.2 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.02e-05/0.3792, allocations: 12 kB / 412.2 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001572/0.3807, allocations: 1.679 MB / 413.8 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.3808, allocations: 7.969 kB / 413.9 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002906/0.3837, allocations: 1.73 MB / 415.6 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008035/0.3845, allocations: 307 kB / 415.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00018/0.3847, allocations: 15.95 kB / 415.9 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006609/0.3853, allocations: 55.94 kB / 416 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.3855, allocations: 52.48 kB / 416 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.011e-05/0.3855, allocations: 22.3 kB / 416 MB, free: 15.2 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001755/0.3873, allocations: 1.055 MB / 417.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3873, allocations: 0 / 417.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001683/0.389, allocations: 356 kB / 417.4 MB, free: 13.8 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.003177/0.3922, allocations: 2.644 MB / 420.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002864/0.3951, allocations: 1.62 MB / 421.7 MB, free: 9.418 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.3951, allocations: 4.125 kB / 421.7 MB, free: 9.414 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.3962, allocations: 0.7751 MB / 422.5 MB, free: 8.582 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001951/0.3981, allocations: 373.5 kB / 422.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03139/0.4295, allocations: 33.08 MB / 455.9 MB, free: 6.152 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001123/0.4307, allocations: 1.5 MB / 457.4 MB, free: 4.625 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001321/0.432, allocations: 358 kB / 457.8 MB, free: 4.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008485/0.4329, allocations: 0.6398 MB / 458.4 MB, free: 3.629 MB / 366.1 MB Notification: Performance of SimCode: time 1.482e-06/0.4329, allocations: 0 / 458.4 MB, free: 3.629 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05996/0.4929, allocations: 32.97 MB / 491.4 MB, free: 3.09 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001999/0.4931, allocations: 229.8 kB / 491.6 MB, free: 2.852 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.758/3.251, allocations: 0 / 491.6 MB, free: 2.852 MB / 398.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