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.001462/0.001462, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.001609/0.00161, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.442/1.442, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000984/0.000984, allocations: 51.02 kB / 302.1 MB, free: 5.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09216/0.09316, allocations: 49.44 MB / 351.5 MB, free: 3.652 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01119/0.1044, allocations: 8.979 MB / 360.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006579/0.111, allocations: 3.166 MB / 363.7 MB, free: 7.449 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001283/0.1123, allocations: 43.81 kB / 363.7 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001952/0.1144, allocations: 0.6561 MB / 364.3 MB, free: 6.746 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002335/0.1167, allocations: 0.7028 MB / 365.1 MB, free: 6.039 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009318/0.1177, allocations: 331.4 kB / 365.4 MB, free: 5.715 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002657/0.1203, allocations: 2.101 MB / 367.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001851/0.1222, allocations: 1.425 MB / 368.9 MB, free: 2.129 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001298/0.1235, allocations: 0.9187 MB / 369.8 MB, free: 1.207 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001487/0.125, allocations: 1.117 MB / 370.9 MB, free: 88 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1879/0.3129, allocations: 226.6 kB / 371.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002027/0.315, allocations: 318.9 kB / 371.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001022/0.3161, allocations: 0.673 MB / 372.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001723/0.3178, allocations: 1.079 MB / 373.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004153/0.322, allocations: 3.109 MB / 376.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.322, allocations: 1.375 kB / 376.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.322, allocations: 0.6875 kB / 376.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001076/0.3221, allocations: 0 / 376.3 MB, free: 12.99 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.005757/0.3279, allocations: 2.27 MB / 378.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.3279, allocations: 10.53 kB / 378.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007281/0.3287, allocations: 225.7 kB / 378.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00228/0.3309, allocations: 1.217 MB / 380.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.362e-05/0.3311, allocations: 115.7 kB / 380.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002717/0.3313, allocations: 153.8 kB / 380.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003701/0.335, allocations: 2.01 MB / 382.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.795e-05/0.3351, allocations: 3.25 kB / 382.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001499/0.3353, allocations: 65.33 kB / 382.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001035/0.3354, allocations: 79.5 kB / 382.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002709/0.3381, allocations: 1.651 MB / 384.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009985/0.3481, allocations: 6.884 MB / 391 MB, free: 5.898 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00077/0.3489, allocations: 451.6 kB / 391.4 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003754/0.3493, allocations: 260.1 kB / 391.7 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002141/0.3495, allocations: 113.4 kB / 391.8 MB, free: 5.457 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.367e-05/0.3495, allocations: 42.06 kB / 391.9 MB, free: 5.414 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.946e-06/0.3495, allocations: 4 kB / 391.9 MB, free: 5.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.00715/0.3567, allocations: 3.282 MB / 395.1 MB, free: 3.539 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001994/0.3587, allocations: 2.342 MB / 397.5 MB, free: 1.422 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00224/0.361, allocations: 1.618 MB / 399.1 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.341e-05/0.361, allocations: 37.64 kB / 399.1 MB, free: 0.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005875/0.3616, allocations: 1.016 MB / 400.1 MB, free: 15.6 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001874/0.3618, allocations: 235.3 kB / 400.4 MB, free: 15.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000414/0.3622, allocations: 323.1 kB / 400.7 MB, free: 15.22 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.519e-05/0.3624, allocations: 307.5 kB / 401 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007093/0.3631, allocations: 0.5171 MB / 401.5 MB, free: 14.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001324/0.3644, allocations: 1.459 MB / 403 MB, free: 13.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00233/0.3667, allocations: 2.14 MB / 405.1 MB, free: 11.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.886e-05/0.3668, allocations: 14.34 kB / 405.1 MB, free: 11.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003653/0.3704, allocations: 2.155 MB / 407.3 MB, free: 9.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.688e-05/0.3705, allocations: 23.94 kB / 407.3 MB, free: 9.477 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.398e-05/0.3705, allocations: 32 kB / 407.3 MB, free: 9.445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005875/0.3711, allocations: 231.3 kB / 407.6 MB, free: 9.211 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/0.3722, allocations: 392.9 kB / 407.9 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00178/0.374, allocations: 1.843 MB / 409.8 MB, free: 6.898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/0.3757, allocations: 139.4 kB / 409.9 MB, free: 6.762 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/0.3758, allocations: 99.92 kB / 410 MB, free: 6.664 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.001083/0.3769, allocations: 0.5858 MB / 410.6 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002921/0.3772, allocations: 154.1 kB / 410.8 MB, free: 5.949 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00187/0.3791, allocations: 1.118 MB / 411.9 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.3791, allocations: 11.94 kB / 411.9 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.3791, allocations: 0 / 411.9 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.3791, allocations: 0 / 411.9 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006075/0.3852, allocations: 3.398 MB / 415.3 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.3853, allocations: 4 kB / 415.3 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004452/0.3857, allocations: 109.5 kB / 415.4 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000644/0.3864, allocations: 225.2 kB / 415.6 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.889e-05/0.3864, allocations: 16.22 kB / 415.6 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003973/0.3904, allocations: 4.052 MB / 419.7 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002022/0.3925, allocations: 2.17 MB / 421.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002757/0.3952, allocations: 1.745 MB / 423.6 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008568/0.3961, allocations: 303.1 kB / 423.9 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001861/0.3963, allocations: 20.5 kB / 423.9 MB, free: 8.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006729/0.397, allocations: 55.94 kB / 424 MB, free: 8.152 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.3971, allocations: 66.95 kB / 424 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.611e-05/0.3972, allocations: 24 kB / 424.1 MB, free: 8.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001586/0.3988, allocations: 1.066 MB / 425.1 MB, free: 7.008 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3988, allocations: 0 / 425.1 MB, free: 7.008 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001768/0.4006, allocations: 384 kB / 425.5 MB, free: 6.633 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.0003444/0.4009, allocations: 181.6 kB / 425.7 MB, free: 6.449 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00244/0.4034, allocations: 1.616 MB / 427.3 MB, free: 4.887 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.4034, allocations: 0 / 427.3 MB, free: 4.887 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001248/0.4046, allocations: 0.8548 MB / 428.1 MB, free: 4.008 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001789/0.4064, allocations: 419.5 kB / 428.6 MB, free: 3.613 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004876/0.4113, allocations: 3.159 MB / 431.7 MB, free: 368 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001106/0.4124, allocations: 1.469 MB / 433.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008335/0.4133, allocations: 354 kB / 433.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002491/0.4135, allocations: 107.4 kB / 433.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4135, allocations: 0 / 433.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of Templates: time 0.0353/0.4489, allocations: 20.39 MB / 454 MB, free: 10.3 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 -s cvode -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/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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches