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.0008802/0.0008802, allocations: 84.73 kB / 21.5 MB, free: 2.984 MB / 18.57 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.00125/0.00125, allocations: 165.5 kB / 24.91 MB, free: 8.77 MB / 18.57 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 0.894/0.894, allocations: 177 MB / 205.2 MB, free: 5.055 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.",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.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 273.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.122e-05/1.247e-05, allocations: 2.312 kB / 273.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1191/0.1191, allocations: 37.6 MB / 311 MB, free: 7.348 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01719/0.1363, allocations: 11.15 MB / 322.2 MB, free: 15.53 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004141/0.1404, allocations: 378.2 kB / 322.6 MB, free: 15.39 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008314/0.1488, allocations: 9.074 MB / 331.6 MB, free: 7.242 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005519/0.1543, allocations: 3.596 MB / 335.2 MB, free: 3.625 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003157/0.1574, allocations: 2.396 MB / 337.6 MB, free: 1.23 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.009819/0.1673, allocations: 13.52 MB / 351.1 MB, free: 3.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01902/0.1863, allocations: 17.61 MB / 368.8 MB, free: 1.844 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01119/0.1975, allocations: 10.68 MB / 379.4 MB, free: 7.145 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008026/0.2055, allocations: 7.532 MB / 387 MB, free: 15.6 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002666/0.2082, allocations: 1.938 MB / 388.9 MB, free: 13.66 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002963/0.2111, allocations: 2.335 MB / 391.2 MB, free: 11.32 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002203/0.2133, allocations: 4.075 MB / 395.3 MB, free: 7.238 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004384/0.2177, allocations: 5.123 MB / 400.4 MB, free: 2.105 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00961/0.2273, allocations: 12.56 MB / 413 MB, free: 5.508 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.2273, allocations: 4 kB / 413 MB, free: 5.504 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2273, allocations: 0 / 413 MB, free: 5.504 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001992/0.2275, allocations: 0 / 413 MB, free: 5.504 MB / 362.7 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.01752/0.245, allocations: 14.56 MB / 427.6 MB, free: 6.824 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.2451, allocations: 19.98 kB / 427.6 MB, free: 6.805 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01526/0.2603, allocations: 6.337 MB / 433.9 MB, free: 472 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1174/0.3777, allocations: 4.401 MB / 438.3 MB, free: 79.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000605/0.3783, allocations: 0.9011 MB / 439.2 MB, free: 79.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001718/0.38, allocations: 1.196 MB / 440.4 MB, free: 79.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01059/0.3906, allocations: 9.659 MB / 450.1 MB, free: 78.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001799/0.3908, allocations: 26.09 kB / 450.1 MB, free: 78.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007632/0.3916, allocations: 0.4928 MB / 450.6 MB, free: 78.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003505/0.3919, allocations: 0.6386 MB / 451.2 MB, free: 78.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006324/0.3982, allocations: 4.672 MB / 455.9 MB, free: 78.03 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02823/0.4265, allocations: 36.6 MB / 492.5 MB, free: 50.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005555/0.432, allocations: 6.131 MB / 498.7 MB, free: 44.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001152/0.4332, allocations: 1.289 MB / 499.9 MB, free: 43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00512/0.4383, allocations: 4.221 MB / 0.4923 GB, free: 38.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.4383, allocations: 73.31 kB / 0.4924 GB, free: 38.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=349): time 4.329e-06/0.4383, allocations: 0 / 0.4924 GB, free: 38.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=389): time 0.01143/0.4498, allocations: 8.318 MB / 0.5005 GB, free: 30.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.735e-05/0.4498, allocations: 98.47 kB / 0.5006 GB, free: 30.53 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001749/0.4515, allocations: 3.334 MB / 0.5039 GB, free: 27.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001568/0.4517, allocations: 89.7 kB / 0.504 GB, free: 27.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.4527, allocations: 5.117 MB / 0.509 GB, free: 22.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004484/0.4532, allocations: 1.404 MB / 0.5103 GB, free: 21.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009508/0.4541, allocations: 1.234 MB / 0.5115 GB, free: 20.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.007e-05/0.4541, allocations: 309.1 kB / 0.5118 GB, free: 20.08 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009109/0.455, allocations: 0.8654 MB / 0.5127 GB, free: 19.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001367/0.4564, allocations: 3.69 MB / 0.5163 GB, free: 14.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002891/0.4593, allocations: 5.227 MB / 0.5214 GB, free: 8.258 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-05/0.4593, allocations: 28 kB / 0.5214 GB, free: 8.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.004126/0.4635, allocations: 4.525 MB / 0.5258 GB, free: 4.328 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.515e-05/0.4635, allocations: 48 kB / 0.5259 GB, free: 4.281 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-05/0.4635, allocations: 100 kB / 0.526 GB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001242/0.4648, allocations: 0.8049 MB / 0.5268 GB, free: 3.375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002329/0.4671, allocations: 1.447 MB / 0.5282 GB, free: 2.043 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004351/0.4715, allocations: 6.001 MB / 0.534 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001776/0.4732, allocations: 283.8 kB / 0.5343 GB, free: 11.65 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002967/0.4735, allocations: 294 kB / 0.5346 GB, free: 11.37 MB / 394.7 MB 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.001492/0.475, allocations: 0.5848 MB / 0.5352 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005437/0.4756, allocations: 411.6 kB / 0.5356 GB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003296/0.4789, allocations: 2.697 MB / 0.5382 GB, free: 7.785 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.806e-05/0.4789, allocations: 43.94 kB / 0.5382 GB, free: 7.742 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/0.4789, allocations: 12 kB / 0.5382 GB, free: 7.73 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.136e-05/0.4789, allocations: 19.92 kB / 0.5383 GB, free: 7.711 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008408/0.4873, allocations: 6.808 MB / 0.5449 GB, free: 1.594 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.4873, allocations: 4 kB / 0.5449 GB, free: 1.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/0.4888, allocations: 0.6249 MB / 0.5455 GB, free: 1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001233/0.49, allocations: 0.6602 MB / 0.5462 GB, free: 344 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001701/0.4902, allocations: 83.91 kB / 0.5463 GB, free: 260 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004021/0.4942, allocations: 5.623 MB / 0.5517 GB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.4942, allocations: 7.188 kB / 0.5517 GB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00383/0.498, allocations: 3.276 MB / 0.5549 GB, free: 7.191 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008432/0.4989, allocations: 0.5726 MB / 0.5555 GB, free: 6.617 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003483/0.4992, allocations: 68 kB / 0.5556 GB, free: 6.551 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008812/0.5001, allocations: 108 kB / 0.5557 GB, free: 6.445 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003082/0.5004, allocations: 277 kB / 0.5559 GB, free: 6.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001479/0.5006, allocations: 81.94 kB / 0.556 GB, free: 6.102 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001418/0.502, allocations: 1.542 MB / 0.5575 GB, free: 4.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.502, allocations: 0 / 0.5575 GB, free: 4.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00331/0.5053, allocations: 1.863 MB / 0.5593 GB, free: 2.887 MB / 410.7 MB 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.0003834/0.5057, allocations: 253.7 kB / 0.5596 GB, free: 2.672 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003511/0.5092, allocations: 3.642 MB / 0.5631 GB, free: 15.36 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001109/0.5093, allocations: 79.94 kB / 0.5632 GB, free: 15.28 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001896/0.5112, allocations: 1.768 MB / 0.5649 GB, free: 13.58 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002421/0.5136, allocations: 1.189 MB / 0.5661 GB, free: 12.44 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1197/0.6333, allocations: 16.83 MB / 0.5825 GB, free: 111.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002207/0.6355, allocations: 2.262 MB / 0.5847 GB, free: 111.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002315/0.6378, allocations: 0.8165 MB / 0.5855 GB, free: 111 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001937/0.6398, allocations: 1.12 MB / 0.5866 GB, free: 110.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.233e-06/0.6398, allocations: 1.625 kB / 0.5866 GB, free: 110.9 MB / 426.7 MB Notification: Performance of Templates: time 0.07909/0.7189, allocations: 70.7 MB / 0.6557 GB, free: 63.84 MB / 426.7 MB " [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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.492066562641412]