Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001865/0.001865, allocations: 110.5 kB / 21.2 MB, free: 488 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002176/0.002176, allocations: 208.6 kB / 24.49 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.431/1.431, allocations: 230.6 MB / 258.3 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|fieldWeakeningController.vs|fieldWeakeningController.is|fieldWeakeningController.id|fieldWeakeningController.iq",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|fieldWeakeningController.vs|fieldWeakeningController.is|fieldWeakeningController.id|fieldWeakeningController.iq",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 51.94 kB / 379 MB, free: 2.398 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2049/0.2065, allocations: 53.38 MB / 432.4 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.02586/0.2323, allocations: 21.28 MB / 453.7 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01398/0.2463, allocations: 7.555 MB / 461.2 MB, free: 9.691 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002362/0.2487, allocations: 199 kB / 461.4 MB, free: 9.496 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01242/0.2611, allocations: 5.329 MB / 466.7 MB, free: 4.152 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006834/0.2679, allocations: 2.616 MB / 469.4 MB, free: 1.527 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004109/0.272, allocations: 1.792 MB / 471.2 MB, free: 15.74 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009024/0.2811, allocations: 7.922 MB / 479.1 MB, free: 7.793 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01374/0.2948, allocations: 9.521 MB / 488.6 MB, free: 14.14 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005637/0.3004, allocations: 4.071 MB / 492.7 MB, free: 10.06 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006718/0.3072, allocations: 4.602 MB / 497.3 MB, free: 5.445 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002164/0.3093, allocations: 1.109 MB / 498.4 MB, free: 4.336 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003327/0.3127, allocations: 1.457 MB / 499.8 MB, free: 2.879 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002288/0.3149, allocations: 2.24 MB / 0.4903 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004801/0.3197, allocations: 3.366 MB / 0.4936 GB, free: 13.25 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01683/0.3366, allocations: 15.17 MB / 0.5084 GB, free: 14.04 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.3366, allocations: 3.938 kB / 0.5084 GB, free: 14.04 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.3366, allocations: 0 / 0.5084 GB, free: 14.04 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002564/0.3368, allocations: 0 / 0.5084 GB, free: 14.04 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1903 * Number of variables: 1903 Notification: Performance of Generate backend data structure: time 0.02498/0.3618, allocations: 9.273 MB / 0.5175 GB, free: 4.684 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.3619, allocations: 8.031 kB / 0.5175 GB, free: 4.676 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03027/0.3921, allocations: 5.286 MB / 0.5226 GB, free: 15.38 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01172/0.4038, allocations: 4.777 MB / 0.5273 GB, free: 10.55 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004731/0.4043, allocations: 0.5058 MB / 0.5278 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001906/0.4062, allocations: 0.6679 MB / 0.5284 GB, free: 9.379 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1986/0.6049, allocations: 11.38 MB / 0.5396 GB, free: 91.73 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001964/0.605, allocations: 19.34 kB / 0.5396 GB, free: 91.73 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007722/0.6058, allocations: 280.2 kB / 0.5398 GB, free: 91.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004128/0.6062, allocations: 427.3 kB / 0.5403 GB, free: 91.71 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01597/0.6222, allocations: 10.7 MB / 0.5507 GB, free: 87.81 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03505/0.6573, allocations: 31.02 MB / 0.581 GB, free: 61 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006931/0.6642, allocations: 5.587 MB / 0.5865 GB, free: 55.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003045/0.6672, allocations: 2.571 MB / 0.589 GB, free: 53.22 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002537/0.6675, allocations: 98.78 kB / 0.5891 GB, free: 53.12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.183e-05/0.6675, allocations: 69.44 kB / 0.5891 GB, free: 53.04 MB / 446.1 MB Notification: Performance of pre-optimization done (n=365): time 6.392e-06/0.6675, allocations: 0 / 0.5891 GB, free: 53.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=375): time 0.02985/0.6974, allocations: 15.66 MB / 0.6044 GB, free: 37.41 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.6974, allocations: 145.7 kB / 0.6046 GB, free: 37.24 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002679/0.7001, allocations: 2.679 MB / 0.6072 GB, free: 34.54 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001961/0.7003, allocations: 89.7 kB / 0.6073 GB, free: 34.45 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009832/0.7013, allocations: 2.987 MB / 0.6102 GB, free: 31.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006198/0.7019, allocations: 1.319 MB / 0.6115 GB, free: 30.15 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001099/0.703, allocations: 0.9104 MB / 0.6123 GB, free: 29.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.027e-05/0.703, allocations: 301.1 kB / 0.6126 GB, free: 28.93 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002718/0.7057, allocations: 2.318 MB / 0.6149 GB, free: 26.59 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003276/0.709, allocations: 3.998 MB / 0.6188 GB, free: 21.83 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006448/0.7155, allocations: 6.711 MB / 0.6254 GB, free: 14.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.972e-05/0.7155, allocations: 19.94 kB / 0.6254 GB, free: 14.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.008658/0.7241, allocations: 7.071 MB / 0.6323 GB, free: 7.262 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.431e-05/0.7242, allocations: 28 kB / 0.6323 GB, free: 7.234 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.804e-05/0.7242, allocations: 56.06 kB / 0.6324 GB, free: 7.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003198/0.7274, allocations: 1.208 MB / 0.6335 GB, free: 5.973 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003448/0.7309, allocations: 1.076 MB / 0.6346 GB, free: 4.895 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002566/0.7334, allocations: 2.353 MB / 0.6369 GB, free: 2.516 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00242/0.7359, allocations: 287.6 kB / 0.6372 GB, free: 2.234 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003031/0.7362, allocations: 232 kB / 0.6374 GB, free: 2.008 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006159/0.7423, allocations: 4.518 MB / 0.6418 GB, free: 13.47 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005111/0.7474, allocations: 3.975 MB / 0.6457 GB, free: 8.742 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009515/0.7569, allocations: 6.699 MB / 0.6522 GB, free: 1.305 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.522e-05/0.757, allocations: 16 kB / 0.6522 GB, free: 1.289 MB / 462.1 MB Notification: Performance of matching and sorting (n=611) (initialization_lambda0): time 0.01161/0.7686, allocations: 7.024 MB / 0.6591 GB, free: 10.23 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.817e-05/0.7686, allocations: 28 kB / 0.6591 GB, free: 10.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.575e-05/0.7687, allocations: 55.94 kB / 0.6592 GB, free: 10.15 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00366/0.7723, allocations: 1.176 MB / 0.6603 GB, free: 8.977 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003931/0.7763, allocations: 1.072 MB / 0.6614 GB, free: 7.902 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003165/0.7794, allocations: 2.268 MB / 0.6636 GB, free: 5.605 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002642/0.7821, allocations: 279.7 kB / 0.6639 GB, free: 5.332 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003848/0.7825, allocations: 228 kB / 0.6641 GB, free: 5.109 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 232 * Number of states: 0 () * Number of discrete variables: 1 (fieldWeakeningController.PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (546): * Single equations (assignments): 545 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(11,55)} Notification: Performance of prepare postOptimizeDAE: time 0.0009167/0.7834, allocations: 494.6 kB / 0.6645 GB, free: 4.617 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006643/0.784, allocations: 350 kB / 0.6649 GB, free: 4.273 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01069/0.7947, allocations: 5.805 MB / 0.6705 GB, free: 14.43 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.512e-05/0.7948, allocations: 19.88 kB / 0.6706 GB, free: 14.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.7948, allocations: 8 kB / 0.6706 GB, free: 14.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002039/0.7968, allocations: 0.7865 MB / 0.6713 GB, free: 13.61 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004518/0.7973, allocations: 64.11 kB / 0.6714 GB, free: 13.55 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00178/0.799, allocations: 215.7 kB / 0.6716 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004852/0.7995, allocations: 238.7 kB / 0.6718 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01146/0.811, allocations: 5.841 MB / 0.6775 GB, free: 7.312 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01134/0.8223, allocations: 7.239 MB / 0.6846 GB, free: 28 kB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00334/0.8257, allocations: 2.16 MB / 0.6867 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002713/0.8284, allocations: 1.726 MB / 0.6884 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of Backend: time 2.51e-07/0.8284, allocations: 0 / 0.6884 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0148/0.8432, allocations: 7.094 MB / 0.6953 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of SimCode: time 0.01993/0.8631, allocations: 11.82 MB / 0.7069 GB, free: 9.207 MB / 0.5137 GB Notification: Performance of Templates: time 0.3063/1.169, allocations: 96.14 MB / 0.8008 GB, free: 161.2 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_FieldWeakening/SMPM_FieldWeakening.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.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: 8.838573558998178]