Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.001939/0.001939, allocations: 119.4 kB / 18.41 MB, free: 4.613 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.002276/0.002276, allocations: 192.3 kB / 21.35 MB, free: 1.684 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.474/1.474, allocations: 222.9 MB / 247 MB, free: 4.191 MB / 190.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.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.0.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.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 51.92 kB / 358.7 MB, free: 8.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09919/0.1007, allocations: 49.44 MB / 408.1 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2576/0.3584, allocations: 39.44 MB / 447.6 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0252/0.3836, allocations: 10.41 MB / 458 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01093/0.3946, allocations: 303.6 kB / 458.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02186/0.4165, allocations: 8.509 MB / 466.8 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01609/0.4326, allocations: 3.415 MB / 470.2 MB, free: 7.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009553/0.4422, allocations: 2.324 MB / 472.5 MB, free: 5.895 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02072/0.4629, allocations: 12.88 MB / 485.4 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04345/0.5064, allocations: 25.31 MB / 0.4988 GB, free: 4.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01367/0.5201, allocations: 6.798 MB / 0.5054 GB, free: 14 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01459/0.5347, allocations: 7.728 MB / 0.513 GB, free: 6.25 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005763/0.5405, allocations: 1.949 MB / 0.5149 GB, free: 4.301 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008398/0.549, allocations: 2.336 MB / 0.5171 GB, free: 1.965 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006958/0.556, allocations: 3.959 MB / 0.521 GB, free: 14 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01534/0.5713, allocations: 7.548 MB / 0.5284 GB, free: 6.418 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03696/0.6083, allocations: 25.94 MB / 0.5537 GB, free: 12.4 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.6084, allocations: 0 / 0.5537 GB, free: 12.4 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6084, allocations: 0 / 0.5537 GB, free: 12.4 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008155/0.6092, allocations: 0 / 0.5537 GB, free: 12.4 MB / 462.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.0509/0.6601, allocations: 15.28 MB / 0.5686 GB, free: 12.98 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.6602, allocations: 12.03 kB / 0.5686 GB, free: 12.97 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03538/0.6956, allocations: 6.208 MB / 0.5747 GB, free: 6.746 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02147/0.7171, allocations: 8.081 MB / 0.5826 GB, free: 14.59 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001285/0.7184, allocations: 0.9071 MB / 0.5835 GB, free: 13.68 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005635/0.7241, allocations: 1.191 MB / 0.5846 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05422/0.7783, allocations: 18.65 MB / 0.6029 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007172/0.7791, allocations: 23.89 kB / 0.6029 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005304/0.7844, allocations: 500 kB / 0.6034 GB, free: 9.23 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008991/0.7854, allocations: 0.646 MB / 0.604 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4426/1.228, allocations: 16.76 MB / 0.6204 GB, free: 141 MB / 0.4982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09627/1.324, allocations: 58.29 MB / 0.6773 GB, free: 104.1 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01909/1.343, allocations: 32.89 MB / 0.7094 GB, free: 70.2 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005891/1.349, allocations: 3.71 MB / 0.713 GB, free: 66.47 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01365/1.363, allocations: 8.649 MB / 0.7215 GB, free: 57.98 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.807e-05/1.363, allocations: 73.31 kB / 0.7215 GB, free: 57.89 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=349): time 5.801e-06/1.363, allocations: 4 kB / 0.7215 GB, free: 57.89 MB / 0.4982 GB Notification: Performance of matching and sorting (n=389): time 0.03126/1.394, allocations: 17.71 MB / 0.7388 GB, free: 40.53 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.493e-05/1.395, allocations: 90.47 kB / 0.7389 GB, free: 40.43 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00646/1.401, allocations: 5.028 MB / 0.7438 GB, free: 35.47 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0006518/1.402, allocations: 85.7 kB / 0.7439 GB, free: 35.38 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.002286/1.404, allocations: 5.637 MB / 0.7494 GB, free: 29.78 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001248/1.405, allocations: 1.416 MB / 0.7508 GB, free: 28.38 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001683/1.407, allocations: 1.323 MB / 0.7521 GB, free: 27.05 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 4.844e-05/1.407, allocations: 305.1 kB / 0.7524 GB, free: 26.75 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003568/1.411, allocations: 2.906 MB / 0.7552 GB, free: 23.84 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004685/1.415, allocations: 5.876 MB / 0.761 GB, free: 16.56 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009238/1.425, allocations: 9.441 MB / 0.7702 GB, free: 5.676 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8e-05/1.425, allocations: 28 kB / 0.7702 GB, free: 5.648 MB / 0.4982 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.0172/1.442, allocations: 9.87 MB / 0.7798 GB, free: 11.72 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.23e-05/1.442, allocations: 51.94 kB / 0.7799 GB, free: 11.67 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001763/1.442, allocations: 103.9 kB / 0.78 GB, free: 11.57 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00276/1.445, allocations: 0.9335 MB / 0.7809 GB, free: 10.62 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006281/1.451, allocations: 1.583 MB / 0.7824 GB, free: 9.031 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0138/1.465, allocations: 10.19 MB / 0.7924 GB, free: 14.42 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005544/1.471, allocations: 403.6 kB / 0.7928 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001328/1.472, allocations: 363.8 kB / 0.7931 GB, free: 13.67 MB / 0.5294 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.008217/1.48, allocations: 4.243 MB / 0.7973 GB, free: 9.41 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001382/1.482, allocations: 0.5395 MB / 0.7978 GB, free: 8.867 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01242/1.494, allocations: 6.485 MB / 0.8041 GB, free: 2.332 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-05/1.494, allocations: 44 kB / 0.8042 GB, free: 2.289 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.312e-05/1.494, allocations: 12 kB / 0.8042 GB, free: 2.277 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.896e-05/1.494, allocations: 27.8 kB / 0.8042 GB, free: 2.25 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03221/1.527, allocations: 15.68 MB / 0.8195 GB, free: 2.527 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-05/1.527, allocations: 0 / 0.8195 GB, free: 2.527 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003528/1.53, allocations: 0.7493 MB / 0.8203 GB, free: 1.777 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002408/1.533, allocations: 0.7878 MB / 0.821 GB, free: 0.9727 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006344/1.533, allocations: 87.97 kB / 0.8211 GB, free: 0.8867 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2373/1.77, allocations: 9.351 MB / 0.8302 GB, free: 171.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/1.771, allocations: 4.406 kB / 0.8302 GB, free: 171.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0163/1.787, allocations: 9.521 MB / 0.8395 GB, free: 170.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00287/1.79, allocations: 1.084 MB / 0.8406 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001282/1.791, allocations: 73.94 kB / 0.8407 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002981/1.794, allocations: 218 kB / 0.8409 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007004/1.795, allocations: 264.5 kB / 0.8411 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002884/1.795, allocations: 114.4 kB / 0.8412 GB, free: 169.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007628/1.803, allocations: 3.353 MB / 0.8445 GB, free: 168.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.51e-07/1.803, allocations: 1.094 kB / 0.8445 GB, free: 168.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009217/1.812, allocations: 1.881 MB / 0.8464 GB, free: 168.2 MB / 0.545 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.001129/1.813, allocations: 257.8 kB / 0.8466 GB, free: 168 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01157/1.825, allocations: 7.675 MB / 0.8541 GB, free: 164.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/1.825, allocations: 0 / 0.8541 GB, free: 164.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005512/1.83, allocations: 3.566 MB / 0.8576 GB, free: 163.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00746/1.838, allocations: 1.291 MB / 0.8588 GB, free: 162.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03532/1.873, allocations: 19.7 MB / 0.8781 GB, free: 150.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009856/1.883, allocations: 7.1 MB / 0.885 GB, free: 145 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002111/1.885, allocations: 454.1 kB / 0.8854 GB, free: 144.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.142e-06/1.885, allocations: 5.141 kB / 0.8855 GB, free: 144.6 MB / 0.545 GB Notification: Performance of Templates: time 0.867/2.752, allocations: 461.6 MB / 1.336 GB, free: 109.9 MB / 0.5607 GB " [Timeout remaining time 657] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.237793502979912]