Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6400,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6400,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001022/0.001022, allocations: 94.2 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001363, allocations: 206 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.7 MB / 247.5 MB, free: 11.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002491/0.000249, allocations: 4 kB / 308.4 MB, free: 0.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09693/0.0972, allocations: 51.53 MB / 359.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01075/0.108, allocations: 8.553 MB / 368.5 MB, free: 4.664 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006267/0.1143, allocations: 3.124 MB / 371.6 MB, free: 1.523 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00142/0.1158, allocations: 43.75 kB / 371.6 MB, free: 1.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002028/0.1178, allocations: 0.5906 MB / 372.2 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002544/0.1204, allocations: 0.6527 MB / 372.9 MB, free: 236 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1722/0.2927, allocations: 269.6 kB / 373.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00351/0.2962, allocations: 2.449 MB / 375.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001829/0.2981, allocations: 1.185 MB / 376.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001455/0.2995, allocations: 0.7349 MB / 377.5 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001468/0.301, allocations: 0.9981 MB / 378.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002525/0.3013, allocations: 103 kB / 378.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006035/0.3019, allocations: 211.6 kB / 378.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005301/0.3024, allocations: 0.534 MB / 379.4 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001002/0.3034, allocations: 0.9513 MB / 380.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002687/0.3061, allocations: 2.52 MB / 382.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.3062, allocations: 4.469 kB / 382.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3062, allocations: 0 / 382.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.606e-05/0.3062, allocations: 0 / 382.8 MB, free: 9.156 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: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.003836/0.3101, allocations: 1.961 MB / 384.8 MB, free: 8.156 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.3101, allocations: 15.02 kB / 384.8 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007851/0.3109, allocations: 233.9 kB / 385 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001976/0.3129, allocations: 1.196 MB / 386.2 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.212e-05/0.313, allocations: 118.5 kB / 386.4 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002501/0.3133, allocations: 154.1 kB / 386.5 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003405/0.3167, allocations: 2.044 MB / 388.5 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.504e-05/0.3167, allocations: 3.406 kB / 388.6 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001436/0.3169, allocations: 67.91 kB / 388.6 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.41e-05/0.317, allocations: 76.03 kB / 388.7 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00283/0.3198, allocations: 1.686 MB / 390.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008683/0.3285, allocations: 7.124 MB / 397.5 MB, free: 172 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008104/0.3294, allocations: 478.2 kB / 398 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004149/0.3298, allocations: 284.7 kB / 398.2 MB, free: 15.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001994/0.33, allocations: 117.6 kB / 398.4 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.33, allocations: 38.94 kB / 398.4 MB, free: 15.67 MB / 318.1 MB Notification: Performance of pre-optimization done (n=48): time 2.585e-06/0.33, allocations: 0 / 398.4 MB, free: 15.67 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.006633/0.3367, allocations: 3.15 MB / 401.5 MB, free: 13.92 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.717e-05/0.3367, allocations: 58.41 kB / 401.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002259/0.339, allocations: 1.633 MB / 403.2 MB, free: 12.34 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.818e-05/0.3391, allocations: 39.39 kB / 403.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007054/0.3398, allocations: 1.029 MB / 404.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001902/0.34, allocations: 242.4 kB / 404.5 MB, free: 11.04 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001707/0.3402, allocations: 133.6 kB / 404.7 MB, free: 10.9 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.636e-05/0.3403, allocations: 309.1 kB / 405 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009062/0.3412, allocations: 0.5309 MB / 405.5 MB, free: 10.06 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001487/0.3427, allocations: 1.469 MB / 407 MB, free: 8.137 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002516/0.3452, allocations: 2.155 MB / 409.1 MB, free: 5.535 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.205e-05/0.3452, allocations: 12 kB / 409.1 MB, free: 5.523 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003616/0.3489, allocations: 2.184 MB / 411.3 MB, free: 3.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.043e-05/0.3489, allocations: 20 kB / 411.3 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.896e-05/0.3489, allocations: 36.08 kB / 411.4 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005452/0.3495, allocations: 226.4 kB / 411.6 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/0.3506, allocations: 399.3 kB / 412 MB, free: 2.645 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001579/0.3522, allocations: 1.718 MB / 413.7 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.3536, allocations: 147.4 kB / 413.9 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/0.3537, allocations: 92 kB / 413.9 MB, free: 0.5469 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * 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.0009105/0.3546, allocations: 0.594 MB / 414.5 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002207/0.3549, allocations: 162.1 kB / 414.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002004/0.3569, allocations: 1.106 MB / 415.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.3569, allocations: 8 kB / 415.8 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.3569, allocations: 3.938 kB / 415.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.3569, allocations: 3.984 kB / 415.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004465/0.3614, allocations: 2.794 MB / 418.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.3614, allocations: 4 kB / 418.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005081/0.3619, allocations: 123.8 kB / 418.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004444/0.3624, allocations: 170.5 kB / 418.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.886e-05/0.3624, allocations: 16 kB / 418.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001441/0.3639, allocations: 1.663 MB / 420.6 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3639, allocations: 0 / 420.6 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002558/0.3665, allocations: 1.662 MB / 422.2 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005386/0.367, allocations: 307.2 kB / 422.5 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/0.3672, allocations: 15.94 kB / 422.6 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006822/0.3679, allocations: 60 kB / 422.6 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.368, allocations: 44.44 kB / 422.7 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.019e-05/0.3681, allocations: 16 kB / 422.7 MB, free: 7.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001586/0.3696, allocations: 1.083 MB / 423.8 MB, free: 6.422 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3697, allocations: 4 kB / 423.8 MB, free: 6.418 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001464/0.3711, allocations: 364 kB / 424.1 MB, free: 6.062 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (speed.phi) * 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 (60): * Single equations (assignments): 57 * 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 Backend phase and start with SimCode phase: time 0.0003221/0.3715, allocations: 163.8 kB / 424.3 MB, free: 5.891 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002617/0.3741, allocations: 1.639 MB / 425.9 MB, free: 4.199 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3741, allocations: 0 / 425.9 MB, free: 4.199 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001103/0.3752, allocations: 0.7676 MB / 426.7 MB, free: 3.379 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002339/0.3776, allocations: 386.2 kB / 427.1 MB, free: 3.008 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005278/0.3829, allocations: 3.75 MB / 430.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001175/0.3841, allocations: 1.453 MB / 432.3 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000418/0.3845, allocations: 123.4 kB / 432.4 MB, free: 13.6 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3845, allocations: 0 / 432.4 MB, free: 13.6 MB / 350.1 MB Notification: Performance of Templates: time 0.04848/0.433, allocations: 47.01 MB / 479.4 MB, free: 14.68 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches