Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00187/0.00187, allocations: 81 kB / 21.25 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002313/0.002313, allocations: 163 kB / 24.5 MB, free: 3.715 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 177.1 MB / 204.7 MB, free: 8.965 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 57.28 kB / 325.6 MB, free: 188 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08855/0.09055, allocations: 53.4 MB / 379 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04383/0.1344, allocations: 34.38 MB / 413.4 MB, free: 12.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02342/0.1578, allocations: 10.37 MB / 423.7 MB, free: 2.488 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007311/0.1651, allocations: 370 kB / 424.1 MB, free: 2.125 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02129/0.1864, allocations: 8.411 MB / 432.5 MB, free: 9.691 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01231/0.1987, allocations: 3.488 MB / 436 MB, free: 6.188 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007663/0.2064, allocations: 2.336 MB / 438.3 MB, free: 3.855 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01835/0.2247, allocations: 13.05 MB / 451.4 MB, free: 6.766 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03142/0.2561, allocations: 17.12 MB / 468.5 MB, free: 5.484 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2099/0.4661, allocations: 6.976 MB / 475.5 MB, free: 18.41 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01196/0.478, allocations: 7.535 MB / 483 MB, free: 18.12 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005962/0.484, allocations: 1.951 MB / 484.9 MB, free: 18.12 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007789/0.4918, allocations: 2.338 MB / 487.3 MB, free: 18.12 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005041/0.4968, allocations: 3.97 MB / 491.3 MB, free: 17.66 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009587/0.5064, allocations: 5.9 MB / 497.2 MB, free: 16.33 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02297/0.5294, allocations: 26.07 MB / 0.511 GB, free: 5.098 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.5294, allocations: 0.6562 kB / 0.511 GB, free: 5.098 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5294, allocations: 0 / 0.511 GB, free: 5.098 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006402/0.53, allocations: 1.094 kB / 0.511 GB, free: 5.098 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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04139/0.5714, allocations: 15.24 MB / 0.5259 GB, free: 11.38 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.5715, allocations: 13.8 kB / 0.5259 GB, free: 11.37 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03502/0.6065, allocations: 6.138 MB / 0.5319 GB, free: 7.398 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0196/0.6261, allocations: 8.097 MB / 0.5398 GB, free: 15.58 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001081/0.6272, allocations: 0.899 MB / 0.5406 GB, free: 14.69 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0049/0.6321, allocations: 1.202 MB / 0.5418 GB, free: 13.5 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05031/0.6824, allocations: 18.92 MB / 0.5603 GB, free: 10.47 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004619/0.6829, allocations: 19.91 kB / 0.5603 GB, free: 10.45 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003314/0.6862, allocations: 0.4928 MB / 0.5608 GB, free: 9.973 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007467/0.6869, allocations: 0.6421 MB / 0.5614 GB, free: 9.328 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0381/0.725, allocations: 16.75 MB / 0.5778 GB, free: 8.574 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1026/0.8276, allocations: 50.69 MB / 0.6273 GB, free: 5.715 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01968/0.8473, allocations: 10.27 MB / 0.6373 GB, free: 13.11 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006053/0.8533, allocations: 3.408 MB / 0.6406 GB, free: 9.691 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01596/0.8693, allocations: 7.663 MB / 0.6481 GB, free: 2.113 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.94e-05/0.8694, allocations: 73.31 kB / 0.6482 GB, free: 2.031 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 6.011e-06/0.8694, allocations: 0 / 0.6482 GB, free: 2.031 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.03724/0.9066, allocations: 17.25 MB / 0.665 GB, free: 0.8086 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.213e-05/0.9067, allocations: 94.12 kB / 0.6651 GB, free: 0.707 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007497/0.9142, allocations: 4.795 MB / 0.6698 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0006137/0.9148, allocations: 89.7 kB / 0.6699 GB, free: 11.81 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.004188/0.919, allocations: 5.652 MB / 0.6754 GB, free: 6.148 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.00162/0.9206, allocations: 1.415 MB / 0.6768 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002112/0.9227, allocations: 1.334 MB / 0.6781 GB, free: 3.406 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001286/0.9228, allocations: 301.1 kB / 0.6784 GB, free: 3.109 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004666/0.9275, allocations: 2.914 MB / 0.6812 GB, free: 196 kB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2206/1.148, allocations: 5.923 MB / 0.687 GB, free: 197.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01763/1.166, allocations: 9.462 MB / 0.6963 GB, free: 192.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002015/1.166, allocations: 29.16 kB / 0.6963 GB, free: 192.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.02613/1.192, allocations: 9.829 MB / 0.7059 GB, free: 188.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001512/1.192, allocations: 49.38 kB / 0.7059 GB, free: 188.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002594/1.192, allocations: 100.2 kB / 0.706 GB, free: 188.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003445/1.196, allocations: 0.9378 MB / 0.7069 GB, free: 188.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007275/1.203, allocations: 1.589 MB / 0.7085 GB, free: 188.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01018/1.213, allocations: 9.674 MB / 0.7179 GB, free: 182.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005435/1.219, allocations: 405.6 kB / 0.7183 GB, free: 182 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001102/1.22, allocations: 358.4 kB / 0.7187 GB, free: 182 MB / 0.5762 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.006653/1.227, allocations: 4.256 MB / 0.7228 GB, free: 179.9 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001071/1.228, allocations: 0.5051 MB / 0.7233 GB, free: 179.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009669/1.237, allocations: 6.432 MB / 0.7296 GB, free: 177.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.109e-05/1.237, allocations: 36.53 kB / 0.7296 GB, free: 177.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.355e-05/1.237, allocations: 11.03 kB / 0.7296 GB, free: 177.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-05/1.237, allocations: 18.66 kB / 0.7297 GB, free: 177.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02135/1.259, allocations: 13.31 MB / 0.7427 GB, free: 167.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/1.259, allocations: 4 kB / 0.7427 GB, free: 167.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003096/1.262, allocations: 0.7481 MB / 0.7434 GB, free: 166.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001962/1.264, allocations: 0.7871 MB / 0.7442 GB, free: 166 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003051/1.264, allocations: 91.64 kB / 0.7443 GB, free: 165.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008592/1.273, allocations: 8.841 MB / 0.7529 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/1.273, allocations: 4 kB / 0.7529 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01239/1.285, allocations: 9.494 MB / 0.7622 GB, free: 149.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002403/1.287, allocations: 0.9837 MB / 0.7631 GB, free: 148.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007135/1.288, allocations: 75.95 kB / 0.7632 GB, free: 148.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002374/1.291, allocations: 218.8 kB / 0.7634 GB, free: 148.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004967/1.291, allocations: 278.6 kB / 0.7637 GB, free: 148.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002488/1.291, allocations: 119.7 kB / 0.7638 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003883/1.295, allocations: 3.068 MB / 0.7668 GB, free: 145.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2e-07/1.295, allocations: 0 / 0.7668 GB, free: 145.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006574/1.302, allocations: 1.875 MB / 0.7686 GB, free: 143.3 MB / 0.5762 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.000665/1.302, allocations: 263.4 kB / 0.7689 GB, free: 143 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01039/1.313, allocations: 7.216 MB / 0.7759 GB, free: 135.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/1.313, allocations: 0 / 0.7759 GB, free: 135.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004562/1.317, allocations: 3.175 MB / 0.779 GB, free: 132.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005099/1.322, allocations: 1.171 MB / 0.7802 GB, free: 131.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02913/1.352, allocations: 20.06 MB / 0.7997 GB, free: 111.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008602/1.36, allocations: 6.93 MB / 0.8065 GB, free: 104.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005756/1.366, allocations: 2.115 MB / 0.8086 GB, free: 102.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001301/1.367, allocations: 404.4 kB / 0.809 GB, free: 101.8 MB / 0.5762 GB Notification: Performance of SimCode: time 1.262e-06/1.367, allocations: 0 / 0.809 GB, free: 101.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.1082/1.475, allocations: 65.43 MB / 0.8729 GB, free: 37.08 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 8.373987069004215]