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.001102/0.001103, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001096/0.001096, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.345/1.345, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001014/0.001014, allocations: 56.05 kB / 301.3 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08638/0.08741, allocations: 49.44 MB / 350.7 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01103/0.09847, allocations: 8.999 MB / 359.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006239/0.1047, allocations: 3.158 MB / 362.9 MB, free: 8.188 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001317/0.1061, allocations: 39.88 kB / 362.9 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002255/0.1084, allocations: 0.6639 MB / 363.6 MB, free: 7.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002708/0.1112, allocations: 0.7067 MB / 364.3 MB, free: 6.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001043/0.1122, allocations: 323.5 kB / 364.6 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002615/0.1148, allocations: 2.093 MB / 366.7 MB, free: 4.355 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002086/0.1169, allocations: 1.429 MB / 368.1 MB, free: 2.875 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001725/0.1187, allocations: 0.8993 MB / 369 MB, free: 1.973 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002632/0.1213, allocations: 1.132 MB / 370.2 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006587/0.122, allocations: 232 kB / 370.4 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001139/0.1232, allocations: 319.8 kB / 370.7 MB, free: 304 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1567/0.2799, allocations: 0.6647 MB / 371.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002557/0.2825, allocations: 1.085 MB / 372.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004227/0.2867, allocations: 3.065 MB / 375.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2868, allocations: 1.375 kB / 375.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2868, allocations: 1.156 kB / 375.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001036/0.2869, allocations: 0.5156 kB / 375.5 MB, free: 12.84 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.006065/0.293, allocations: 2.272 MB / 377.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.293, allocations: 12.91 kB / 377.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007817/0.2938, allocations: 224.8 kB / 378 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002215/0.296, allocations: 1.183 MB / 379.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.717e-05/0.2961, allocations: 116.4 kB / 379.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002715/0.2964, allocations: 156.9 kB / 379.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003601/0.3, allocations: 2.003 MB / 381.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.306e-05/0.3001, allocations: 9.297 kB / 381.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000164/0.3003, allocations: 66.25 kB / 381.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.604e-05/0.3004, allocations: 77.95 kB / 381.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002912/0.3033, allocations: 1.651 MB / 383.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009783/0.3131, allocations: 6.935 MB / 390.2 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007575/0.3139, allocations: 458.9 kB / 390.7 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003465/0.3143, allocations: 264.2 kB / 390.9 MB, free: 5.555 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000196/0.3145, allocations: 111.8 kB / 391 MB, free: 5.453 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/0.3145, allocations: 37.72 kB / 391.1 MB, free: 5.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.445e-06/0.3145, allocations: 4 kB / 391.1 MB, free: 5.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.006928/0.3214, allocations: 3.283 MB / 394.3 MB, free: 3.531 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001931/0.3234, allocations: 2.333 MB / 396.7 MB, free: 1.426 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00219/0.3256, allocations: 1.614 MB / 398.3 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001128/0.3257, allocations: 37.67 kB / 398.3 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005881/0.3263, allocations: 1.02 MB / 399.4 MB, free: 15.61 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002347/0.3266, allocations: 239.6 kB / 399.6 MB, free: 15.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004475/0.327, allocations: 324.6 kB / 399.9 MB, free: 15.22 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.388e-05/0.3271, allocations: 304.3 kB / 400.2 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007535/0.3279, allocations: 0.5172 MB / 400.7 MB, free: 14.67 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001266/0.3292, allocations: 1.462 MB / 402.2 MB, free: 13.1 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002181/0.3314, allocations: 2.135 MB / 404.3 MB, free: 11.26 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.459e-05/0.3314, allocations: 11.44 kB / 404.3 MB, free: 11.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003499/0.3349, allocations: 2.158 MB / 406.5 MB, free: 10.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.44e-05/0.335, allocations: 25.06 kB / 406.5 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.244e-05/0.335, allocations: 32 kB / 406.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005357/0.3356, allocations: 234.2 kB / 406.8 MB, free: 9.805 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/0.3367, allocations: 392.1 kB / 407.2 MB, free: 9.453 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001615/0.3383, allocations: 1.845 MB / 409 MB, free: 7.488 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/0.34, allocations: 131.4 kB / 409.1 MB, free: 7.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001402/0.3401, allocations: 107.2 kB / 409.2 MB, free: 7.258 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.0009434/0.3411, allocations: 0.5877 MB / 409.8 MB, free: 6.691 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003309/0.3414, allocations: 154.1 kB / 410 MB, free: 6.539 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001937/0.3433, allocations: 1.117 MB / 411.1 MB, free: 5.406 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.3434, allocations: 8 kB / 411.1 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.3434, allocations: 0 / 411.1 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.3434, allocations: 3.938 kB / 411.1 MB, free: 5.395 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005493/0.3489, allocations: 3.413 MB / 414.5 MB, free: 1.895 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.3489, allocations: 8 kB / 414.5 MB, free: 1.887 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004274/0.3494, allocations: 111.3 kB / 414.6 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006254/0.35, allocations: 226.7 kB / 414.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.332e-05/0.3501, allocations: 16 kB / 414.9 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003733/0.3538, allocations: 4.063 MB / 418.9 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001899/0.3557, allocations: 2.161 MB / 421.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002561/0.3583, allocations: 1.74 MB / 422.8 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006931/0.359, allocations: 307.2 kB / 423.1 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001881/0.3592, allocations: 23.94 kB / 423.2 MB, free: 8.762 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000671/0.3599, allocations: 51.94 kB / 423.2 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.36, allocations: 59.53 kB / 423.3 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.586e-05/0.3601, allocations: 27.98 kB / 423.3 MB, free: 8.629 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001517/0.3616, allocations: 1.07 MB / 424.4 MB, free: 7.562 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3616, allocations: 0 / 424.4 MB, free: 7.562 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001702/0.3633, allocations: 376 kB / 424.7 MB, free: 7.195 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.0003184/0.3636, allocations: 185.3 kB / 424.9 MB, free: 7.008 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002664/0.3663, allocations: 1.717 MB / 426.6 MB, free: 5.344 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.3663, allocations: 0 / 426.6 MB, free: 5.344 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001189/0.3675, allocations: 0.8289 MB / 427.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002126/0.3697, allocations: 413.5 kB / 427.9 MB, free: 4.098 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004739/0.3744, allocations: 3.27 MB / 431.1 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001047/0.3755, allocations: 1.453 MB / 432.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003775/0.3759, allocations: 123.4 kB / 432.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3759, allocations: 0 / 432.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of Templates: time 0.05157/0.4275, allocations: 47.15 MB / 479.8 MB, free: 76 kB / 382.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