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.001476/0.001476, allocations: 114.8 kB / 17.75 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.00166/0.00166, allocations: 184.5 kB / 18.67 MB, free: 4.441 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.38/1.38, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009342/0.0009342, allocations: 55.91 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2371, allocations: 49.43 MB / 401.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.009273/0.2464, allocations: 8.997 MB / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0049/0.2513, allocations: 3.162 MB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005203/0.2518, allocations: 39.88 kB / 413.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001305/0.2532, allocations: 0.6639 MB / 414.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001395/0.2546, allocations: 0.695 MB / 415 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005769/0.2552, allocations: 327.4 kB / 415.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001817/0.257, allocations: 2.113 MB / 417.4 MB, free: 8.824 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001503/0.2585, allocations: 1.417 MB / 418.8 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008704/0.2594, allocations: 0.9109 MB / 419.7 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001223/0.2606, allocations: 1.129 MB / 420.9 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002642/0.2609, allocations: 228 kB / 421.1 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005025/0.2614, allocations: 319.9 kB / 421.4 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005508/0.2619, allocations: 0.6777 MB / 422.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008356/0.2628, allocations: 1.085 MB / 423.2 MB, free: 3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002437/0.2652, allocations: 3.101 MB / 426.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2653, allocations: 0 / 426.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.198e-06/0.2653, allocations: 0 / 426.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.749e-05/0.2653, allocations: 3.938 kB / 426.3 MB, free: 15.89 MB / 350.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.003955/0.2693, allocations: 2.273 MB / 428.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.2693, allocations: 8.031 kB / 428.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006422/0.27, allocations: 222.5 kB / 428.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001754/0.2717, allocations: 1.219 MB / 430 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.102e-05/0.2718, allocations: 115.4 kB / 430.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002193/0.272, allocations: 163.9 kB / 430.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002954/0.275, allocations: 2.004 MB / 432.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.981e-05/0.2751, allocations: 3.906 kB / 432.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001395/0.2752, allocations: 67.98 kB / 432.3 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.728e-05/0.2753, allocations: 78.91 kB / 432.4 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002471/0.2778, allocations: 1.647 MB / 434 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00848/0.2863, allocations: 6.889 MB / 440.9 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007065/0.287, allocations: 448.8 kB / 441.4 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003572/0.2874, allocations: 258.1 kB / 441.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002045/0.2876, allocations: 117.5 kB / 441.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.517e-05/0.2876, allocations: 42.94 kB / 441.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.184e-06/0.2876, allocations: 0 / 441.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.006593/0.2942, allocations: 3.288 MB / 445.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002302/0.2965, allocations: 2.338 MB / 447.4 MB, free: 9.941 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002025/0.2986, allocations: 1.612 MB / 449 MB, free: 8.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.212e-05/0.2986, allocations: 33.7 kB / 449.1 MB, free: 8.281 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006669/0.2993, allocations: 1.022 MB / 450.1 MB, free: 7.246 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001781/0.2995, allocations: 236.8 kB / 450.3 MB, free: 7.012 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003881/0.2999, allocations: 323 kB / 450.6 MB, free: 6.691 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.19e-05/0.3, allocations: 305.1 kB / 450.9 MB, free: 6.391 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007189/0.3007, allocations: 0.5154 MB / 451.4 MB, free: 5.875 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001299/0.302, allocations: 1.468 MB / 452.9 MB, free: 3.941 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002148/0.3042, allocations: 2.141 MB / 455 MB, free: 1.332 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.35e-05/0.3042, allocations: 15.94 kB / 455.1 MB, free: 1.316 MB / 366.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003245/0.3075, allocations: 2.153 MB / 457.2 MB, free: 15.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.768e-05/0.3075, allocations: 20 kB / 457.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.362e-05/0.3076, allocations: 32 kB / 457.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007386/0.3083, allocations: 235.2 kB / 457.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001713/0.31, allocations: 387.3 kB / 457.9 MB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00237/0.3124, allocations: 1.847 MB / 459.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001961/0.3144, allocations: 135.4 kB / 459.9 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/0.3145, allocations: 104.1 kB / 460 MB, free: 12.25 MB / 382.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.0008145/0.3154, allocations: 0.5906 MB / 460.5 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002224/0.3156, allocations: 150.4 kB / 460.7 MB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001814/0.3174, allocations: 1.114 MB / 461.8 MB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.3174, allocations: 7.984 kB / 461.8 MB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3174, allocations: 4 kB / 461.8 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.3175, allocations: 3.984 kB / 461.8 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004862/0.3223, allocations: 3.39 MB / 465.2 MB, free: 6.809 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.385e-06/0.3223, allocations: 12.03 kB / 465.2 MB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004285/0.3228, allocations: 103.9 kB / 465.3 MB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000595/0.3234, allocations: 226.3 kB / 465.5 MB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.09e-05/0.3234, allocations: 16 kB / 465.6 MB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003868/0.3273, allocations: 4.05 MB / 469.6 MB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002022/0.3293, allocations: 2.169 MB / 471.8 MB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002486/0.3318, allocations: 1.747 MB / 473.5 MB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005268/0.3324, allocations: 311.3 kB / 473.8 MB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001983/0.3326, allocations: 27.92 kB / 473.9 MB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006632/0.3333, allocations: 47.94 kB / 473.9 MB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.3334, allocations: 67.8 kB / 474 MB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.174e-05/0.3335, allocations: 20 kB / 474 MB, free: 13.46 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001485/0.3349, allocations: 1.07 MB / 475.1 MB, free: 12.39 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.335, allocations: 0 / 475.1 MB, free: 12.39 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001553/0.3365, allocations: 384 kB / 475.4 MB, free: 12.02 MB / 398.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.0003472/0.3369, allocations: 179 kB / 475.6 MB, free: 11.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002436/0.3393, allocations: 1.613 MB / 477.2 MB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3393, allocations: 0 / 477.2 MB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001304/0.3406, allocations: 0.8399 MB / 478.1 MB, free: 9.289 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001823/0.3425, allocations: 416.1 kB / 478.5 MB, free: 8.895 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005288/0.3478, allocations: 3.222 MB / 481.7 MB, free: 5.559 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001108/0.3489, allocations: 1.453 MB / 483.1 MB, free: 4.074 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003256/0.3492, allocations: 119.4 kB / 483.3 MB, free: 3.957 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3493, allocations: 0 / 483.3 MB, free: 3.957 MB / 398.1 MB Notification: Performance of Templates: time 0.05628/0.4055, allocations: 47.38 MB / 0.5182 GB, free: 4.629 MB / 446.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/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