Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 191 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002312/0.002312, allocations: 51.91 kB / 370.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.3017, allocations: 52.18 MB / 423.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01266/0.3143, allocations: 9.632 MB / 432.7 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007505/0.3219, allocations: 3.412 MB / 436.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001521/0.3234, allocations: 87.38 kB / 436.2 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002116/0.3255, allocations: 0.8073 MB / 437 MB, free: 496 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002628/0.3281, allocations: 0.9204 MB / 437.9 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001019/0.3291, allocations: 455.4 kB / 438.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003485/0.3326, allocations: 2.939 MB / 441.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002147/0.3348, allocations: 1.505 MB / 442.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002175/0.3369, allocations: 1.406 MB / 444.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002793/0.3397, allocations: 1.685 MB / 445.9 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005567/0.3403, allocations: 376 kB / 446.3 MB, free: 7.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000967/0.3413, allocations: 471.8 kB / 446.7 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001174/0.3424, allocations: 1.091 MB / 447.8 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001628/0.3441, allocations: 1.342 MB / 449.2 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005831/0.3499, allocations: 4.938 MB / 454.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3499, allocations: 0 / 454.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3499, allocations: 0 / 454.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001223/0.35, allocations: 0 / 454.1 MB, free: 15.27 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007445/0.3575, allocations: 3.398 MB / 457.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.3575, allocations: 8.031 kB / 457.5 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008522/0.3584, allocations: 354.8 kB / 457.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003725/0.3621, allocations: 1.756 MB / 459.6 MB, free: 9.672 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001603/0.3622, allocations: 185.4 kB / 459.8 MB, free: 9.488 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003993/0.3626, allocations: 255.9 kB / 460.1 MB, free: 9.238 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005674/0.3683, allocations: 3.362 MB / 463.4 MB, free: 5.777 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.835e-05/0.3684, allocations: 7.953 kB / 463.4 MB, free: 5.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002244/0.3686, allocations: 100 kB / 463.5 MB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001453/0.3688, allocations: 120.9 kB / 463.6 MB, free: 5.551 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00481/0.3736, allocations: 2.74 MB / 466.4 MB, free: 2.797 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01528/0.3889, allocations: 9.044 MB / 475.4 MB, free: 9.402 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001979/0.3908, allocations: 1.07 MB / 476.5 MB, free: 8.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001249/0.3921, allocations: 0.7119 MB / 477.2 MB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002475/0.3923, allocations: 48.94 kB / 477.3 MB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.955e-05/0.3924, allocations: 47.56 kB / 477.3 MB, free: 7.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 4.178e-06/0.3924, allocations: 0 / 477.3 MB, free: 7.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01543/0.4078, allocations: 6.609 MB / 483.9 MB, free: 0.8555 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.614e-05/0.4079, allocations: 68.34 kB / 484 MB, free: 0.7773 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002695/0.4106, allocations: 1.644 MB / 485.6 MB, free: 15.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.628e-05/0.4107, allocations: 45.7 kB / 485.7 MB, free: 15.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001138/0.4118, allocations: 1.325 MB / 487 MB, free: 13.74 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004307/0.4122, allocations: 444.2 kB / 487.4 MB, free: 13.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004821/0.4127, allocations: 299.4 kB / 487.7 MB, free: 13 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.4129, allocations: 309 kB / 488 MB, free: 12.7 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001336/0.4142, allocations: 0.773 MB / 488.8 MB, free: 11.92 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001706/0.4159, allocations: 1.3 MB / 490.1 MB, free: 10.39 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003281/0.4192, allocations: 2.206 MB / 492.3 MB, free: 7.957 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/0.4192, allocations: 4 kB / 492.3 MB, free: 7.953 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00447/0.4237, allocations: 2.46 MB / 494.8 MB, free: 5.473 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/0.4237, allocations: 12 kB / 494.8 MB, free: 5.461 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.716e-05/0.4237, allocations: 16 kB / 494.8 MB, free: 5.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006977/0.4244, allocations: 251.6 kB / 495 MB, free: 5.188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001501/0.4259, allocations: 419.3 kB / 495.4 MB, free: 4.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003237/0.4292, allocations: 2.986 MB / 498.4 MB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001596/0.4308, allocations: 127.8 kB / 498.6 MB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/0.4309, allocations: 71.98 kB / 498.6 MB, free: 1.391 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001591/0.4325, allocations: 0.8173 MB / 499.4 MB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000356/0.4328, allocations: 182.8 kB / 499.6 MB, free: 392 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003648/0.4365, allocations: 2.022 MB / 0.4899 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.4365, allocations: 12.14 kB / 0.4899 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.4365, allocations: 7.938 kB / 0.4899 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.48e-05/0.4365, allocations: 11.95 kB / 0.4899 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007836/0.4444, allocations: 4.11 MB / 0.4939 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.4444, allocations: 0 / 0.4939 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001114/0.4455, allocations: 263.9 kB / 0.4942 GB, free: 9.852 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005292/0.446, allocations: 203.3 kB / 0.4944 GB, free: 9.641 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.739e-05/0.4461, allocations: 28 kB / 0.4944 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003066/0.4491, allocations: 2.95 MB / 0.4973 GB, free: 6.457 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.4491, allocations: 4.031 kB / 0.4973 GB, free: 6.453 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005099/0.4542, allocations: 3.132 MB / 0.5003 GB, free: 3.266 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/0.4556, allocations: 338.7 kB / 0.5007 GB, free: 2.934 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002199/0.4558, allocations: 24 kB / 0.5007 GB, free: 2.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009614/0.4568, allocations: 95.86 kB / 0.5008 GB, free: 2.816 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000217/0.457, allocations: 92.66 kB / 0.5009 GB, free: 2.727 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.083e-05/0.4571, allocations: 36 kB / 0.5009 GB, free: 2.691 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001879/0.4589, allocations: 1.095 MB / 0.502 GB, free: 1.602 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4589, allocations: 0 / 0.502 GB, free: 1.602 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001582/0.4605, allocations: 487.9 kB / 0.5024 GB, free: 1.125 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 2 systems {(2,1,100.0%), (1,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.0004459/0.461, allocations: 194.9 kB / 0.5026 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003882/0.4649, allocations: 2.125 MB / 0.5047 GB, free: 14.77 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.698e-06/0.4649, allocations: 0 / 0.5047 GB, free: 14.77 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001943/0.4668, allocations: 1.121 MB / 0.5058 GB, free: 13.61 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002377/0.4692, allocations: 445.6 kB / 0.5062 GB, free: 13.18 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008962/0.4781, allocations: 4.946 MB / 0.511 GB, free: 8.18 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001823/0.48, allocations: 1.45 MB / 0.5125 GB, free: 6.691 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001531/0.4815, allocations: 482.8 kB / 0.5129 GB, free: 6.215 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004196/0.4819, allocations: 139.4 kB / 0.5131 GB, free: 6.078 MB / 430.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4819, allocations: 0 / 0.5131 GB, free: 6.078 MB / 430.1 MB Notification: Performance of Templates: time 0.2567/0.7386, allocations: 27.89 MB / 0.5403 GB, free: 108.7 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.8225147016346455]