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.001732/0.001732, allocations: 107 kB / 21.18 MB, free: 0.6484 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.002278/0.002278, allocations: 214.7 kB / 24.48 MB, free: 3.941 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 2.027/2.027, allocations: 230.6 MB / 258.2 MB, free: 7.754 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.00241/0.00241, allocations: 47.92 kB / 379 MB, free: 2.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3269, allocations: 53.37 MB / 432.4 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.07665/0.4035, allocations: 34.38 MB / 466.8 MB, free: 4.152 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03316/0.4367, allocations: 10.36 MB / 477.1 MB, free: 9.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01042/0.4471, allocations: 370 kB / 477.5 MB, free: 9.402 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03647/0.4836, allocations: 8.032 MB / 485.5 MB, free: 1.352 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02658/0.5101, allocations: 3.511 MB / 489 MB, free: 13.83 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01135/0.5215, allocations: 2.337 MB / 491.4 MB, free: 11.49 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02647/0.548, allocations: 13.04 MB / 0.4926 GB, free: 14.41 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0432/0.5912, allocations: 17.36 MB / 0.5095 GB, free: 12.89 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01662/0.6078, allocations: 6.99 MB / 0.5164 GB, free: 5.887 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0202/0.628, allocations: 7.923 MB / 0.5241 GB, free: 13.94 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009097/0.6371, allocations: 1.949 MB / 0.526 GB, free: 11.99 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.014/0.6511, allocations: 2.355 MB / 0.5283 GB, free: 9.633 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01223/0.6633, allocations: 3.97 MB / 0.5322 GB, free: 5.652 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.5586/1.222, allocations: 5.902 MB / 0.5379 GB, free: 43.92 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05414/1.276, allocations: 26.07 MB / 0.5634 GB, free: 39.68 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.039e-05/1.276, allocations: 0 / 0.5634 GB, free: 39.68 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.308e-06/1.276, allocations: 0.8438 kB / 0.5634 GB, free: 39.68 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001255/1.277, allocations: 3.125 kB / 0.5634 GB, free: 39.68 MB / 446.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.05698/1.334, allocations: 15.24 MB / 0.5783 GB, free: 31.6 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.238e-05/1.334, allocations: 9.219 kB / 0.5783 GB, free: 31.6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0355/1.37, allocations: 6.126 MB / 0.5843 GB, free: 28.78 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02051/1.39, allocations: 8.102 MB / 0.5922 GB, free: 23.75 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008385/1.391, allocations: 0.9055 MB / 0.5931 GB, free: 23.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005285/1.397, allocations: 1.196 MB / 0.5943 GB, free: 22.8 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05011/1.447, allocations: 18.92 MB / 0.6127 GB, free: 3.773 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007316/1.447, allocations: 27.73 kB / 0.6128 GB, free: 3.75 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005339/1.453, allocations: 499.2 kB / 0.6132 GB, free: 3.273 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005937/1.453, allocations: 0.6382 MB / 0.6139 GB, free: 2.633 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04274/1.496, allocations: 16.74 MB / 0.6302 GB, free: 1.875 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1216/1.618, allocations: 50.67 MB / 0.6797 GB, free: 15 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02264/1.64, allocations: 10.27 MB / 0.6897 GB, free: 6.391 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009094/1.649, allocations: 3.402 MB / 0.693 GB, free: 2.98 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02781/1.677, allocations: 7.668 MB / 0.7005 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001076/1.677, allocations: 69.31 kB / 0.7006 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=349): time 8.055e-06/1.677, allocations: 0 / 0.7006 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of matching and sorting (n=389): time 0.04589/1.723, allocations: 17.24 MB / 0.7174 GB, free: 10.11 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.79e-05/1.723, allocations: 94.47 kB / 0.7175 GB, free: 10 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009804/1.733, allocations: 4.791 MB / 0.7222 GB, free: 5.203 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009025/1.734, allocations: 85.7 kB / 0.7223 GB, free: 5.113 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005266/1.739, allocations: 5.658 MB / 0.7278 GB, free: 15.44 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002358/1.742, allocations: 1.419 MB / 0.7292 GB, free: 14.04 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004242/1.746, allocations: 1.334 MB / 0.7305 GB, free: 12.69 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 0.0001746/1.746, allocations: 301.1 kB / 0.7308 GB, free: 12.39 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006442/1.752, allocations: 2.906 MB / 0.7336 GB, free: 9.484 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01/1.762, allocations: 5.934 MB / 0.7394 GB, free: 2.188 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01892/1.781, allocations: 9.459 MB / 0.7487 GB, free: 7.707 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002571/1.782, allocations: 28 kB / 0.7487 GB, free: 7.68 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.2995/2.081, allocations: 9.828 MB / 0.7583 GB, free: 198.6 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.00011/2.081, allocations: 48.89 kB / 0.7583 GB, free: 198.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002381/2.082, allocations: 99.75 kB / 0.7584 GB, free: 198.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002787/2.084, allocations: 0.9419 MB / 0.7593 GB, free: 198.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006768/2.091, allocations: 1.589 MB / 0.7609 GB, free: 198.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01158/2.103, allocations: 9.672 MB / 0.7703 GB, free: 194.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006496/2.109, allocations: 409.4 kB / 0.7707 GB, free: 194.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001756/2.111, allocations: 357.4 kB / 0.7711 GB, free: 194.8 MB / 0.5763 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.009221/2.12, allocations: 4.246 MB / 0.7752 GB, free: 193.4 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00143/2.122, allocations: 0.5112 MB / 0.7757 GB, free: 193.4 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01063/2.132, allocations: 6.429 MB / 0.782 GB, free: 190.9 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.422e-05/2.132, allocations: 45.27 kB / 0.782 GB, free: 190.9 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.574e-05/2.132, allocations: 11.84 kB / 0.7821 GB, free: 190.9 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-05/2.132, allocations: 22.69 kB / 0.7821 GB, free: 190.9 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03448/2.167, allocations: 13.3 MB / 0.7951 GB, free: 185.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.218e-05/2.167, allocations: 3.703 kB / 0.7951 GB, free: 185.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003811/2.171, allocations: 0.7528 MB / 0.7958 GB, free: 185.5 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002389/2.173, allocations: 0.7817 MB / 0.7966 GB, free: 185.3 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007706/2.174, allocations: 94.94 kB / 0.7967 GB, free: 185.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01157/2.185, allocations: 8.845 MB / 0.8053 GB, free: 177.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.518e-06/2.185, allocations: 9.578 kB / 0.8053 GB, free: 177.6 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02194/2.207, allocations: 9.493 MB / 0.8146 GB, free: 169.5 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005272/2.213, allocations: 0.982 MB / 0.8155 GB, free: 168.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002741/2.215, allocations: 72.98 kB / 0.8156 GB, free: 168.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005704/2.221, allocations: 215.6 kB / 0.8158 GB, free: 168.7 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002069/2.223, allocations: 284.7 kB / 0.8161 GB, free: 168.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001346/2.224, allocations: 116 kB / 0.8162 GB, free: 168.5 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.01061/2.235, allocations: 3.056 MB / 0.8192 GB, free: 165.9 MB / 0.5763 GB Notification: Performance of sort global known variables: time 9e-08/2.235, allocations: 4 kB / 0.8192 GB, free: 165.9 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01449/2.249, allocations: 1.882 MB / 0.821 GB, free: 164.1 MB / 0.5763 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.001589/2.251, allocations: 260.8 kB / 0.8213 GB, free: 163.9 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01573/2.267, allocations: 7.218 MB / 0.8283 GB, free: 157 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 9.357e-06/2.267, allocations: 0 / 0.8283 GB, free: 157 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.00661/2.273, allocations: 3.18 MB / 0.8314 GB, free: 153.8 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01074/2.284, allocations: 1.165 MB / 0.8326 GB, free: 152.6 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07236/2.357, allocations: 20.07 MB / 0.8522 GB, free: 132.5 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02723/2.384, allocations: 6.926 MB / 0.8589 GB, free: 125.6 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.01474/2.398, allocations: 2.103 MB / 0.861 GB, free: 123.4 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003076/2.402, allocations: 411.3 kB / 0.8614 GB, free: 123 MB / 0.5763 GB Notification: Performance of SimCode: time 1.913e-06/2.402, allocations: 0 / 0.8614 GB, free: 123 MB / 0.5763 GB Notification: Performance of Templates: time 0.1341/2.536, allocations: 80.54 MB / 0.94 GB, free: 43.44 MB / 0.5763 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 -s cvode -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: 10.673742176004453]