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.SMR_CurrentSource.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.001809/0.001809, allocations: 112.5 kB / 18.45 MB, free: 4.605 MB / 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.002144/0.002144, allocations: 207.3 kB / 21.41 MB, free: 1.648 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.478/1.478, allocations: 230.6 MB / 254.8 MB, free: 15.08 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.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00162/0.00162, allocations: 47.92 kB / 374.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1017, allocations: 53.32 MB / 427.5 MB, free: 4.223 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2433/0.345, allocations: 40.24 MB / 467.8 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02793/0.373, allocations: 10.69 MB / 478.5 MB, free: 8.707 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01092/0.3839, allocations: 369.6 kB / 478.8 MB, free: 8.582 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02252/0.4064, allocations: 8.637 MB / 487.5 MB, free: 2.074 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01592/0.4223, allocations: 3.49 MB / 490.9 MB, free: 15.25 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008347/0.4307, allocations: 2.375 MB / 493.3 MB, free: 13.34 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02059/0.4513, allocations: 12.96 MB / 0.4944 GB, free: 1.629 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03914/0.4904, allocations: 19.64 MB / 0.5136 GB, free: 13.85 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01377/0.5042, allocations: 6.947 MB / 0.5204 GB, free: 6.883 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01501/0.5192, allocations: 7.915 MB / 0.5281 GB, free: 14.94 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006572/0.5258, allocations: 1.957 MB / 0.53 GB, free: 12.98 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008901/0.5347, allocations: 2.367 MB / 0.5323 GB, free: 10.62 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007154/0.5418, allocations: 3.963 MB / 0.5362 GB, free: 6.645 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01691/0.5587, allocations: 7.568 MB / 0.5436 GB, free: 15.04 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03963/0.5983, allocations: 25.96 MB / 0.5689 GB, free: 5 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.029e-05/0.5984, allocations: 7.938 kB / 0.5689 GB, free: 4.992 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.5984, allocations: 0 / 0.5689 GB, free: 4.992 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0008124/0.5992, allocations: 0 / 0.5689 GB, free: 4.992 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04916/0.6483, allocations: 15.33 MB / 0.5839 GB, free: 5.523 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.6484, allocations: 8.031 kB / 0.5839 GB, free: 5.516 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03577/0.6841, allocations: 6.115 MB / 0.5899 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01934/0.7035, allocations: 8.111 MB / 0.5978 GB, free: 7.195 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001116/0.7046, allocations: 0.9071 MB / 0.5987 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005262/0.7099, allocations: 1.191 MB / 0.5999 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05107/0.7609, allocations: 18.69 MB / 0.6181 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006698/0.7616, allocations: 23.83 kB / 0.6181 GB, free: 2.285 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004281/0.7659, allocations: 0.4921 MB / 0.6186 GB, free: 1.793 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008485/0.7667, allocations: 0.6382 MB / 0.6193 GB, free: 1.152 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2755/1.042, allocations: 16.8 MB / 0.6357 GB, free: 147.4 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09177/1.134, allocations: 58.99 MB / 0.6933 GB, free: 103.3 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0196/1.154, allocations: 32.8 MB / 0.7253 GB, free: 66.68 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005465/1.159, allocations: 3.417 MB / 0.7286 GB, free: 63.26 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01443/1.173, allocations: 8.885 MB / 0.7373 GB, free: 54.35 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/1.174, allocations: 72.09 kB / 0.7374 GB, free: 54.27 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=349): time 4.237e-06/1.174, allocations: 0 / 0.7374 GB, free: 54.27 MB / 0.5137 GB Notification: Performance of matching and sorting (n=389): time 0.03348/1.207, allocations: 17.73 MB / 0.7547 GB, free: 36.41 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/1.207, allocations: 90.47 kB / 0.7548 GB, free: 36.31 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008325/1.215, allocations: 5.046 MB / 0.7597 GB, free: 31.27 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001054/1.216, allocations: 89.7 kB / 0.7598 GB, free: 31.18 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003705/1.22, allocations: 5.64 MB / 0.7653 GB, free: 25.53 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001691/1.222, allocations: 1.416 MB / 0.7667 GB, free: 24.13 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00334/1.225, allocations: 1.338 MB / 0.768 GB, free: 22.78 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 3.912e-05/1.225, allocations: 309.1 kB / 0.7683 GB, free: 22.48 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004356/1.23, allocations: 2.91 MB / 0.7711 GB, free: 19.56 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00577/1.235, allocations: 5.879 MB / 0.7769 GB, free: 12.28 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01004/1.245, allocations: 9.448 MB / 0.7861 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.531e-05/1.245, allocations: 28 kB / 0.7861 GB, free: 1.363 MB / 0.5137 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.02156/1.267, allocations: 9.869 MB / 0.7958 GB, free: 7.434 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001234/1.267, allocations: 53.66 kB / 0.7958 GB, free: 7.383 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002042/1.267, allocations: 100 kB / 0.7959 GB, free: 7.285 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004407/1.272, allocations: 0.9368 MB / 0.7968 GB, free: 6.332 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01041/1.282, allocations: 1.591 MB / 0.7984 GB, free: 4.738 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02255/1.305, allocations: 10.19 MB / 0.8083 GB, free: 10.13 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008936/1.314, allocations: 403.5 kB / 0.8087 GB, free: 9.734 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001927/1.316, allocations: 359.9 kB / 0.8091 GB, free: 9.383 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01347/1.329, allocations: 4.244 MB / 0.8132 GB, free: 5.125 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002149/1.331, allocations: 0.5434 MB / 0.8137 GB, free: 4.578 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01837/1.35, allocations: 6.469 MB / 0.82 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.205e-05/1.35, allocations: 43.94 kB / 0.8201 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.608e-05/1.35, allocations: 12 kB / 0.8201 GB, free: 14 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.007e-05/1.35, allocations: 23.86 kB / 0.8201 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2613/1.611, allocations: 15.7 MB / 0.8355 GB, free: 178.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.931e-05/1.611, allocations: 3.375 kB / 0.8355 GB, free: 178.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003897/1.615, allocations: 0.7513 MB / 0.8362 GB, free: 178.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002609/1.618, allocations: 0.7854 MB / 0.837 GB, free: 178.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000842/1.618, allocations: 89.52 kB / 0.837 GB, free: 178.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0116/1.63, allocations: 9.355 MB / 0.8462 GB, free: 174.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/1.63, allocations: 9.875 kB / 0.8462 GB, free: 174.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01829/1.648, allocations: 9.516 MB / 0.8555 GB, free: 170.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002671/1.651, allocations: 1.086 MB / 0.8565 GB, free: 169.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001443/1.652, allocations: 74.28 kB / 0.8566 GB, free: 169.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003395/1.656, allocations: 219.3 kB / 0.8568 GB, free: 169.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009272/1.657, allocations: 269 kB / 0.8571 GB, free: 169.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000464/1.657, allocations: 118.6 kB / 0.8572 GB, free: 169.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.007755/1.665, allocations: 3.362 MB / 0.8605 GB, free: 168.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/1.665, allocations: 0 / 0.8605 GB, free: 168.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01075/1.676, allocations: 1.888 MB / 0.8623 GB, free: 168.3 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (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.001153/1.677, allocations: 265.6 kB / 0.8626 GB, free: 168.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01343/1.69, allocations: 7.371 MB / 0.8698 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.848e-06/1.69, allocations: 1.438 kB / 0.8698 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00632/1.697, allocations: 3.33 MB / 0.873 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009542/1.706, allocations: 1.301 MB / 0.8743 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03958/1.746, allocations: 19.66 MB / 0.8935 GB, free: 151.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009823/1.756, allocations: 7.117 MB / 0.9004 GB, free: 145.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002171/1.758, allocations: 481.3 kB / 0.9009 GB, free: 145.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.503e-06/1.758, allocations: 0 / 0.9009 GB, free: 145.5 MB / 0.5606 GB Notification: Performance of Templates: time 0.8372/2.595, allocations: 464.4 MB / 1.354 GB, free: 126.1 MB / 0.5762 GB " [Timeout remaining time 657] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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: 22.942782230995363]