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.001242/0.001242, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001293/0.001293, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 227.4 MB / 246.3 MB, free: 9.031 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001099/0.001099, allocations: 64.58 kB / 306.4 MB, free: 0.6875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0782/0.07931, allocations: 50.53 MB / 356.9 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.008774/0.08811, allocations: 9.054 MB / 366 MB, free: 5.047 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00445/0.09258, allocations: 3.163 MB / 369.1 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008908/0.09349, allocations: 43.81 kB / 369.2 MB, free: 1.824 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001539/0.09505, allocations: 0.5983 MB / 369.8 MB, free: 1.223 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001713/0.09677, allocations: 0.645 MB / 370.4 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006573/0.09744, allocations: 275.7 kB / 370.7 MB, free: 312 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1882/0.2856, allocations: 2.451 MB / 373.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001641/0.2873, allocations: 1.189 MB / 374.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001505/0.2888, allocations: 0.8185 MB / 375.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001403/0.2902, allocations: 1.11 MB / 376.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002621/0.2905, allocations: 142.5 kB / 376.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006123/0.2911, allocations: 251.8 kB / 376.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005898/0.2917, allocations: 0.59 MB / 377.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000923/0.2927, allocations: 1.001 MB / 378.2 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002915/0.2956, allocations: 3.04 MB / 381.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2956, allocations: 0 / 381.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2956, allocations: 3.281 kB / 381.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.204e-05/0.2957, allocations: 1.375 kB / 381.3 MB, free: 8.934 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.003932/0.2996, allocations: 2.293 MB / 383.6 MB, free: 7.582 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.2997, allocations: 9.625 kB / 383.6 MB, free: 7.582 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002516/0.2999, allocations: 233 kB / 383.8 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006005/0.3005, allocations: 235.7 kB / 384 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001517/0.302, allocations: 1.201 MB / 385.2 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.638e-05/0.3021, allocations: 117.4 kB / 385.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002208/0.3024, allocations: 160.1 kB / 385.5 MB, free: 6.535 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002984/0.3054, allocations: 2.025 MB / 387.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.726e-05/0.3054, allocations: 17.7 kB / 387.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/0.3056, allocations: 66.03 kB / 387.6 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.153e-05/0.3056, allocations: 74.75 kB / 387.7 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002518/0.3082, allocations: 1.674 MB / 389.3 MB, free: 4.898 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007542/0.3157, allocations: 7.091 MB / 396.4 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008269/0.3166, allocations: 479 kB / 396.9 MB, free: 15.17 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004045/0.317, allocations: 272.2 kB / 397.2 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002073/0.3172, allocations: 124.6 kB / 397.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.3172, allocations: 39 kB / 397.3 MB, free: 14.89 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 3.136e-06/0.3172, allocations: 4 kB / 397.3 MB, free: 14.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.006347/0.3236, allocations: 3.03 MB / 400.4 MB, free: 13.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.979e-05/0.3237, allocations: 58.22 kB / 400.4 MB, free: 13.1 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002188/0.3259, allocations: 1.635 MB / 402.1 MB, free: 11.94 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.203e-05/0.3259, allocations: 33.7 kB / 402.1 MB, free: 11.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006114/0.3265, allocations: 1.034 MB / 403.1 MB, free: 10.86 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.3267, allocations: 240.7 kB / 403.4 MB, free: 10.63 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003795/0.3271, allocations: 315.1 kB / 403.7 MB, free: 10.31 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.499e-05/0.3272, allocations: 301.1 kB / 404 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008493/0.328, allocations: 0.5264 MB / 404.5 MB, free: 9.492 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001393/0.3294, allocations: 1.449 MB / 405.9 MB, free: 7.598 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002319/0.3318, allocations: 2.136 MB / 408.1 MB, free: 5.043 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/0.3318, allocations: 12 kB / 408.1 MB, free: 5.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003427/0.3352, allocations: 2.164 MB / 410.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.163e-05/0.3353, allocations: 20 kB / 410.3 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.652e-05/0.3353, allocations: 32 kB / 410.3 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005759/0.3359, allocations: 231 kB / 410.5 MB, free: 2.562 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/0.337, allocations: 399.2 kB / 410.9 MB, free: 2.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001536/0.3386, allocations: 1.71 MB / 412.6 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001327/0.3399, allocations: 143.3 kB / 412.8 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.34, allocations: 96 kB / 412.9 MB, free: 88 kB / 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 (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008337/0.3409, allocations: 0.5945 MB / 413.4 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002156/0.3411, allocations: 158 kB / 413.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001865/0.343, allocations: 1.09 MB / 414.7 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.343, allocations: 11.94 kB / 414.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.343, allocations: 0 / 414.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.343, allocations: 0 / 414.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004403/0.3474, allocations: 2.775 MB / 417.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.3474, allocations: 0 / 417.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005148/0.348, allocations: 119.8 kB / 417.6 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004318/0.3484, allocations: 173.8 kB / 417.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.146e-05/0.3484, allocations: 19.88 kB / 417.8 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001392/0.3498, allocations: 1.655 MB / 419.4 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3499, allocations: 4.031 kB / 419.4 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002517/0.3524, allocations: 1.634 MB / 421.1 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005585/0.353, allocations: 303.2 kB / 421.4 MB, free: 7.246 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001822/0.3531, allocations: 15.94 kB / 421.4 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006451/0.3538, allocations: 47.94 kB / 421.4 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.3539, allocations: 48.5 kB / 421.5 MB, free: 7.137 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.182e-05/0.354, allocations: 19.98 kB / 421.5 MB, free: 7.117 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001524/0.3555, allocations: 1.075 MB / 422.6 MB, free: 6.047 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.3555, allocations: 4 kB / 422.6 MB, free: 6.043 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001598/0.3571, allocations: 364 kB / 422.9 MB, free: 5.688 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 (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003017/0.3602, allocations: 2.246 MB / 425.2 MB, free: 3.383 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002569/0.3628, allocations: 1.618 MB / 426.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.3628, allocations: 0.8125 kB / 426.8 MB, free: 1.719 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001055/0.3638, allocations: 0.7593 MB / 427.6 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001775/0.3656, allocations: 374.4 kB / 427.9 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02858/0.3942, allocations: 17.03 MB / 445 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001457/0.3957, allocations: 1.469 MB / 446.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001201/0.3969, allocations: 354 kB / 446.8 MB, free: 12.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008557/0.3978, allocations: 0.636 MB / 447.4 MB, free: 11.37 MB / 366.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3978, allocations: 4 kB / 447.4 MB, free: 11.37 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05265/0.4505, allocations: 33.89 MB / 481.3 MB, free: 9.871 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001869/0.4507, allocations: 257.1 kB / 481.6 MB, free: 9.609 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.341/2.791, allocations: 0 / 481.6 MB, free: 9.609 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/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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches