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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 101.9 kB / 16.5 MB, free: 6.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 192.5 kB / 17.42 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 222.9 MB / 241.1 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000983/0.000983, allocations: 47.2 kB / 299.9 MB, free: 6.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09968/0.1007, allocations: 49.46 MB / 349.4 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.0098/0.1105, allocations: 8.933 MB / 358.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0057/0.1163, allocations: 3.143 MB / 361.5 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001187/0.1175, allocations: 39.81 kB / 361.5 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001964/0.1195, allocations: 0.5945 MB / 362.1 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002229/0.1217, allocations: 0.6256 MB / 362.7 MB, free: 7.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008894/0.1226, allocations: 295.6 kB / 363 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002853/0.1255, allocations: 2.425 MB / 365.5 MB, free: 4.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001798/0.1273, allocations: 1.184 MB / 366.6 MB, free: 3.477 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001381/0.1287, allocations: 0.8053 MB / 367.4 MB, free: 2.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001728/0.1304, allocations: 1.093 MB / 368.5 MB, free: 1.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005196/0.131, allocations: 144 kB / 368.7 MB, free: 1.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009293/0.1319, allocations: 239.8 kB / 368.9 MB, free: 1.195 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007827/0.1327, allocations: 0.5763 MB / 369.5 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1516/0.2843, allocations: 0.9919 MB / 370.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002975/0.2873, allocations: 3.004 MB / 373.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.2873, allocations: 0.6094 kB / 373.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2873, allocations: 0 / 373.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.546e-05/0.2874, allocations: 0.5 kB / 373.5 MB, free: 14.58 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.004145/0.2915, allocations: 2.266 MB / 375.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.882e-05/0.2916, allocations: 8.844 kB / 375.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005783/0.2921, allocations: 225.8 kB / 376 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001658/0.2938, allocations: 1.179 MB / 377.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.742e-05/0.2939, allocations: 115.2 kB / 377.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002294/0.2941, allocations: 160.2 kB / 377.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003101/0.2972, allocations: 2.006 MB / 379.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.369e-05/0.2973, allocations: 3.812 kB / 379.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001443/0.2975, allocations: 64.88 kB / 379.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.441e-05/0.2975, allocations: 84.48 kB / 379.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002522/0.3001, allocations: 1.645 MB / 381.2 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008012/0.3081, allocations: 6.939 MB / 388.2 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006872/0.3088, allocations: 454 kB / 388.6 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003355/0.3092, allocations: 263 kB / 388.9 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001831/0.3094, allocations: 111.6 kB / 389 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.946e-05/0.3094, allocations: 40.38 kB / 389 MB, free: 7.488 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.314e-06/0.3094, allocations: 4 kB / 389 MB, free: 7.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.00621/0.3156, allocations: 3.282 MB / 392.3 MB, free: 5.613 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00176/0.3174, allocations: 2.181 MB / 394.5 MB, free: 3.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002131/0.3195, allocations: 1.613 MB / 396.1 MB, free: 2.781 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.902e-05/0.3196, allocations: 36.45 kB / 396.1 MB, free: 2.742 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004569/0.3201, allocations: 1.022 MB / 397.2 MB, free: 1.844 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.3202, allocations: 232.7 kB / 397.4 MB, free: 1.648 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003438/0.3206, allocations: 320.6 kB / 397.7 MB, free: 1.461 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.179e-05/0.3206, allocations: 301.1 kB / 398 MB, free: 1.164 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006335/0.3212, allocations: 0.5245 MB / 398.5 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/0.3223, allocations: 1.461 MB / 400 MB, free: 15.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002156/0.3244, allocations: 2.146 MB / 402.1 MB, free: 13.49 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/0.3245, allocations: 6.719 kB / 402.1 MB, free: 13.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003205/0.3277, allocations: 2.16 MB / 404.3 MB, free: 12.11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.801e-05/0.3277, allocations: 20 kB / 404.3 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.14e-05/0.3278, allocations: 32 kB / 404.3 MB, free: 12.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005192/0.3283, allocations: 227.2 kB / 404.6 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/0.3294, allocations: 401 kB / 404.9 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001508/0.3309, allocations: 1.716 MB / 406.7 MB, free: 9.645 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001396/0.3323, allocations: 136.3 kB / 406.8 MB, free: 9.512 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/0.3324, allocations: 99.98 kB / 406.9 MB, free: 9.414 MB / 318.1 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.0008859/0.3333, allocations: 0.5888 MB / 407.5 MB, free: 8.848 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002445/0.3336, allocations: 158.1 kB / 407.6 MB, free: 8.691 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/0.3355, allocations: 1.107 MB / 408.7 MB, free: 7.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.3355, allocations: 4 kB / 408.7 MB, free: 7.566 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.3355, allocations: 7.938 kB / 408.8 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.238e-06/0.3355, allocations: 3.984 kB / 408.8 MB, free: 7.555 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005049/0.3406, allocations: 3.401 MB / 412.2 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.3406, allocations: 4 kB / 412.2 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000404/0.341, allocations: 110.3 kB / 412.3 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006414/0.3417, allocations: 226.4 kB / 412.5 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.535e-05/0.3417, allocations: 23.83 kB / 412.5 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003514/0.3452, allocations: 3.7 MB / 416.2 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001946/0.3472, allocations: 2.016 MB / 418.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002591/0.3498, allocations: 1.741 MB / 420 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006353/0.3505, allocations: 311.1 kB / 420.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001784/0.3507, allocations: 16 kB / 420.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006565/0.3513, allocations: 52 kB / 420.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.3515, allocations: 70.45 kB / 420.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.731e-05/0.3515, allocations: 24 kB / 420.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001635/0.3532, allocations: 1.063 MB / 421.5 MB, free: 10.26 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3532, allocations: 4 kB / 421.5 MB, free: 10.26 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001678/0.3548, allocations: 388 kB / 421.9 MB, free: 9.879 MB / 334.1 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.0003132/0.3552, allocations: 172.7 kB / 422.1 MB, free: 9.707 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002435/0.3576, allocations: 1.603 MB / 423.7 MB, free: 8.152 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.3576, allocations: 8 kB / 423.7 MB, free: 8.145 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001243/0.3589, allocations: 0.844 MB / 424.5 MB, free: 7.273 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001831/0.3607, allocations: 388.4 kB / 424.9 MB, free: 6.906 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004832/0.3656, allocations: 3.844 MB / 428.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001017/0.3666, allocations: 1.472 MB / 430.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009672/0.3676, allocations: 350 kB / 430.5 MB, free: 1.125 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002589/0.3678, allocations: 111.4 kB / 430.7 MB, free: 1.016 MB / 334.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3679, allocations: 4 kB / 430.7 MB, free: 1.012 MB / 334.1 MB Notification: Performance of Templates: time 0.03193/0.3998, allocations: 19.54 MB / 450.2 MB, free: 13.72 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) 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) Reference file matches