Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00088/0.00088, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8584/0.8584, allocations: 173.3 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.163e-06/1.163e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.209e-05/1.326e-05, allocations: 12.61 kB / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.006488/0.006501, allocations: 7.956 MB / 326.4 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002973/0.009474, allocations: 2.971 MB / 329.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003661/0.00984, allocations: 51.69 kB / 329.4 MB, free: 11.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009071/0.01075, allocations: 0.66 MB / 330.1 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001005/0.01175, allocations: 0.7839 MB / 330.9 MB, free: 9.855 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003522/0.0121, allocations: 331.3 kB / 331.2 MB, free: 9.531 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001434/0.01354, allocations: 2.186 MB / 333.4 MB, free: 7.336 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006937/0.01423, allocations: 0.7933 MB / 334.2 MB, free: 6.492 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008715/0.0151, allocations: 1.353 MB / 335.5 MB, free: 5.137 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007674/0.01587, allocations: 0.9624 MB / 336.5 MB, free: 4.172 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001663/0.01604, allocations: 228 kB / 336.7 MB, free: 3.949 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003068/0.01634, allocations: 331.7 kB / 337 MB, free: 3.625 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004034/0.01675, allocations: 0.701 MB / 337.7 MB, free: 2.922 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000453/0.0172, allocations: 0.7405 MB / 338.5 MB, free: 2.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001996/0.0192, allocations: 3.139 MB / 341.6 MB, free: 15.03 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.0192, allocations: 4 kB / 341.6 MB, free: 15.02 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.0192, allocations: 0 / 341.6 MB, free: 15.02 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.01922, allocations: 0 / 341.6 MB, free: 15.02 MB / 314.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.002234/0.02145, allocations: 2.215 MB / 343.8 MB, free: 12.77 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.02149, allocations: 8.922 kB / 343.8 MB, free: 12.76 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001915/0.02168, allocations: 236.3 kB / 344.1 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003354/0.02202, allocations: 239.6 kB / 344.3 MB, free: 12.28 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.02324, allocations: 1.151 MB / 345.5 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.135e-05/0.0233, allocations: 115.4 kB / 345.6 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.02345, allocations: 156.3 kB / 345.7 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00216/0.02561, allocations: 2.084 MB / 347.8 MB, free: 8.672 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.403e-05/0.02564, allocations: 7.953 kB / 347.8 MB, free: 8.664 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.575e-05/0.02574, allocations: 64 kB / 347.9 MB, free: 8.602 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.962e-05/0.02579, allocations: 78.91 kB / 348 MB, free: 8.523 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001668/0.02746, allocations: 1.647 MB / 349.6 MB, free: 6.871 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005464/0.03293, allocations: 6.281 MB / 355.9 MB, free: 272 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004886/0.03342, allocations: 426.2 kB / 356.3 MB, free: 15.84 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002345/0.03365, allocations: 250.2 kB / 356.5 MB, free: 15.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000121/0.03377, allocations: 40.88 kB / 356.6 MB, free: 15.55 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/0.0338, allocations: 47 kB / 356.6 MB, free: 15.49 MB / 330.7 MB Notification: Performance of pre-optimization done (n=47): time 1.603e-06/0.0338, allocations: 0 / 356.6 MB, free: 15.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=63): time 0.003829/0.03763, allocations: 3.16 MB / 359.8 MB, free: 12.3 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001692/0.03932, allocations: 2.207 MB / 362 MB, free: 9.949 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/0.04065, allocations: 1.674 MB / 363.7 MB, free: 8.266 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.431e-05/0.04069, allocations: 41.7 kB / 363.7 MB, free: 8.219 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004604/0.04115, allocations: 1.041 MB / 364.8 MB, free: 7.168 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.04127, allocations: 242 kB / 365 MB, free: 6.93 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000252/0.04152, allocations: 323.3 kB / 365.3 MB, free: 6.605 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.945e-05/0.04158, allocations: 301.1 kB / 365.6 MB, free: 6.309 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005071/0.04209, allocations: 0.5191 MB / 366.1 MB, free: 5.789 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008711/0.04296, allocations: 1.465 MB / 367.6 MB, free: 3.859 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001755/0.04471, allocations: 2.135 MB / 369.7 MB, free: 1.258 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.04472, allocations: 8 kB / 369.7 MB, free: 1.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.001992/0.04671, allocations: 2.163 MB / 371.9 MB, free: 15.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.04674, allocations: 27.88 kB / 371.9 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.996e-05/0.04676, allocations: 35.94 kB / 371.9 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002984/0.04705, allocations: 230.4 kB / 372.2 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006045/0.04766, allocations: 395.3 kB / 372.6 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000976/0.04864, allocations: 1.748 MB / 374.3 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006028/0.04924, allocations: 139.7 kB / 374.4 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.521e-05/0.04931, allocations: 92 kB / 374.5 MB, free: 12.29 MB / 346.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 (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.0004934/0.04981, allocations: 0.5912 MB / 375.1 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003742/0.05018, allocations: 159 kB / 375.3 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001119/0.0513, allocations: 1.112 MB / 376.4 MB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.0513, allocations: 4 kB / 376.4 MB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.05131, allocations: 4 kB / 376.4 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.05131, allocations: 3.984 kB / 376.4 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003033/0.05435, allocations: 3.134 MB / 379.5 MB, free: 7.109 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.05435, allocations: 8.594 kB / 379.5 MB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002254/0.05458, allocations: 115.8 kB / 379.7 MB, free: 6.988 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003204/0.0549, allocations: 226.5 kB / 379.9 MB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.772e-05/0.05492, allocations: 19.98 kB / 379.9 MB, free: 6.738 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002489/0.05741, allocations: 3.827 MB / 383.7 MB, free: 2.68 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001125/0.05854, allocations: 2.042 MB / 385.8 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001466/0.06, allocations: 1.747 MB / 387.5 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002924/0.0603, allocations: 242.9 kB / 387.8 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.944e-05/0.06039, allocations: 19.94 kB / 387.8 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003361/0.06072, allocations: 48.2 kB / 387.8 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.032e-05/0.0608, allocations: 71.7 kB / 387.9 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/0.06083, allocations: 27.98 kB / 387.9 MB, free: 14.27 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009259/0.06176, allocations: 1.066 MB / 389 MB, free: 13.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.06176, allocations: 4.062 kB / 389 MB, free: 13.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001099/0.06286, allocations: 384 kB / 389.4 MB, free: 12.82 MB / 362.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 (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 1 system {(3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001818/0.06468, allocations: 2.354 MB / 391.7 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001358/0.06603, allocations: 1.421 MB / 393.1 MB, free: 8.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.06604, allocations: 4 kB / 393.1 MB, free: 8.926 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006604/0.0667, allocations: 0.7488 MB / 393.9 MB, free: 8.148 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.0677, allocations: 412.9 kB / 394.3 MB, free: 7.754 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01477/0.08247, allocations: 15.25 MB / 409.5 MB, free: 7.262 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000877/0.08335, allocations: 0.8931 MB / 410.4 MB, free: 6.336 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005935/0.08394, allocations: 358 kB / 410.8 MB, free: 5.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005257/0.08447, allocations: 0.6213 MB / 411.4 MB, free: 5.359 MB / 378.7 MB Notification: Performance of SimCode: time 7.81e-07/0.08447, allocations: 0 / 411.4 MB, free: 5.359 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1839/0.2684, allocations: 38.7 MB / 450.1 MB, free: 117.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.205/9.474, allocations: 5.531 kB / 450.1 MB, free: 117.9 MB / 410.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.04 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.140542874112725]