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.001491/0.001491, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001733/0.001733, allocations: 213.5 kB / 24.52 MB, free: 3.91 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.442/1.442, allocations: 230.5 MB / 258.2 MB, free: 7.793 MB / 206.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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002134/0.002134, allocations: 63.91 kB / 378.6 MB, free: 2.766 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2467/0.2489, allocations: 53.41 MB / 432 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04235/0.2912, allocations: 34.36 MB / 466.3 MB, free: 3.906 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02362/0.3148, allocations: 10.32 MB / 476.6 MB, free: 9.551 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007468/0.3223, allocations: 373.9 kB / 477 MB, free: 9.184 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0203/0.3426, allocations: 8.016 MB / 485 MB, free: 1.145 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01233/0.3549, allocations: 3.511 MB / 488.5 MB, free: 13.62 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00746/0.3624, allocations: 2.333 MB / 490.9 MB, free: 11.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01871/0.3811, allocations: 13.04 MB / 0.4921 GB, free: 14.21 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03563/0.4167, allocations: 17.37 MB / 0.5091 GB, free: 12.68 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01263/0.4294, allocations: 6.974 MB / 0.5159 GB, free: 5.691 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01344/0.4428, allocations: 7.938 MB / 0.5236 GB, free: 13.73 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005785/0.4486, allocations: 1.953 MB / 0.5255 GB, free: 11.77 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00799/0.4566, allocations: 2.363 MB / 0.5278 GB, free: 9.41 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006555/0.4632, allocations: 3.974 MB / 0.5317 GB, free: 5.426 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2309/0.694, allocations: 5.901 MB / 0.5375 GB, free: 43.87 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02655/0.7206, allocations: 26.08 MB / 0.563 GB, free: 39.59 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.7206, allocations: 2.406 kB / 0.563 GB, free: 39.59 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.7206, allocations: 3.938 kB / 0.563 GB, free: 39.59 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006415/0.7212, allocations: 0 / 0.563 GB, free: 39.59 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.04492/0.7662, allocations: 15.27 MB / 0.5779 GB, free: 31.52 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.7662, allocations: 10.38 kB / 0.5779 GB, free: 31.52 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000298/0.7665, allocations: 328.9 kB / 0.5782 GB, free: 31.49 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006891/0.7734, allocations: 1.711 MB / 0.5799 GB, free: 30.28 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03246/0.8059, allocations: 6.122 MB / 0.5858 GB, free: 27.46 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01656/0.8224, allocations: 8.122 MB / 0.5938 GB, free: 22.35 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007003/0.8231, allocations: 0.9055 MB / 0.5947 GB, free: 21.45 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004503/0.8276, allocations: 1.194 MB / 0.5958 GB, free: 20.27 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04495/0.8726, allocations: 18.91 MB / 0.6143 GB, free: 1.246 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005795/0.8731, allocations: 27.36 kB / 0.6143 GB, free: 1.223 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004345/0.8775, allocations: 0.4923 MB / 0.6148 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005112/0.878, allocations: 0.6421 MB / 0.6154 GB, free: 100 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.042/0.92, allocations: 16.8 MB / 0.6318 GB, free: 15.29 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.107/1.027, allocations: 52.47 MB / 0.6831 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01868/1.046, allocations: 10.28 MB / 0.6931 GB, free: 1.973 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006351/1.052, allocations: 3.401 MB / 0.6964 GB, free: 14.56 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0172/1.069, allocations: 7.722 MB / 0.704 GB, free: 6.926 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.801e-05/1.069, allocations: 73.25 kB / 0.704 GB, free: 6.844 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=349): time 6.502e-06/1.069, allocations: 0 / 0.704 GB, free: 6.844 MB / 0.5294 GB Notification: Performance of matching and sorting (n=389): time 0.04017/1.109, allocations: 17.28 MB / 0.7209 GB, free: 5.594 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.187e-05/1.11, allocations: 94.47 kB / 0.721 GB, free: 5.488 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01057/1.12, allocations: 5.042 MB / 0.7259 GB, free: 464 kB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007275/1.121, allocations: 85.7 kB / 0.726 GB, free: 372 kB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004949/1.126, allocations: 5.637 MB / 0.7315 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001967/1.128, allocations: 1.425 MB / 0.7329 GB, free: 9.309 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002927/1.131, allocations: 1.327 MB / 0.7342 GB, free: 7.973 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001245/1.131, allocations: 309.1 kB / 0.7345 GB, free: 7.668 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005053/1.136, allocations: 2.91 MB / 0.7373 GB, free: 4.754 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00781/1.144, allocations: 5.933 MB / 0.7431 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01369/1.157, allocations: 9.459 MB / 0.7524 GB, free: 2.977 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001311/1.157, allocations: 28 kB / 0.7524 GB, free: 2.949 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.2512/1.409, allocations: 9.867 MB / 0.762 GB, free: 202.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 9.881e-05/1.409, allocations: 48.09 kB / 0.7621 GB, free: 202.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002071/1.409, allocations: 101.5 kB / 0.7622 GB, free: 202.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002409/1.411, allocations: 0.9393 MB / 0.7631 GB, free: 202.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005537/1.417, allocations: 1.583 MB / 0.7646 GB, free: 202.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009884/1.427, allocations: 9.763 MB / 0.7742 GB, free: 197.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005531/1.432, allocations: 410 kB / 0.7746 GB, free: 197.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001149/1.434, allocations: 357.6 kB / 0.7749 GB, free: 197.5 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.007619/1.441, allocations: 4.247 MB / 0.7791 GB, free: 195.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001445/1.443, allocations: 0.5382 MB / 0.7796 GB, free: 195.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0106/1.453, allocations: 6.468 MB / 0.7859 GB, free: 192.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.6e-05/1.453, allocations: 39.66 kB / 0.7859 GB, free: 192.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.619e-05/1.453, allocations: 10 kB / 0.786 GB, free: 192.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-05/1.453, allocations: 21.73 kB / 0.786 GB, free: 192.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02686/1.48, allocations: 15 MB / 0.8006 GB, free: 183 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/1.48, allocations: 8 kB / 0.8006 GB, free: 183 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003141/1.483, allocations: 0.75 MB / 0.8014 GB, free: 182.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001953/1.485, allocations: 0.7825 MB / 0.8021 GB, free: 181.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003647/1.486, allocations: 95.77 kB / 0.8022 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00833/1.494, allocations: 8.913 MB / 0.8109 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/1.494, allocations: 7.969 kB / 0.8109 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01293/1.507, allocations: 9.526 MB / 0.8202 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002881/1.51, allocations: 1.036 MB / 0.8212 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001184/1.511, allocations: 76.84 kB / 0.8213 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003105/1.514, allocations: 219.8 kB / 0.8215 GB, free: 163.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007685/1.515, allocations: 282.5 kB / 0.8218 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003346/1.515, allocations: 116 kB / 0.8219 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005374/1.521, allocations: 3.363 MB / 0.8252 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.21e-07/1.521, allocations: 0 / 0.8252 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007897/1.528, allocations: 1.885 MB / 0.827 GB, free: 157.5 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.01337/1.542, allocations: 10.23 MB / 0.837 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01033/1.552, allocations: 7.228 MB / 0.8441 GB, free: 139.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/1.552, allocations: 0 / 0.8441 GB, free: 139.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004735/1.557, allocations: 3.179 MB / 0.8472 GB, free: 136.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00635/1.563, allocations: 1.3 MB / 0.8484 GB, free: 135.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09516/1.658, allocations: 65.27 MB / 0.9122 GB, free: 66.38 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007853/1.666, allocations: 6.935 MB / 0.919 GB, free: 59.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005239/1.671, allocations: 2.149 MB / 0.9211 GB, free: 57.25 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005288/1.677, allocations: 4.354 MB / 0.9253 GB, free: 52.89 MB / 0.5762 GB Notification: Performance of SimCode: time 1.072e-06/1.677, allocations: 0 / 0.9253 GB, free: 52.89 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4199/2.097, allocations: 155.3 MB / 1.077 GB, free: 134.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.16/25.25, allocations: 7.938 kB / 1.077 GB, free: 134.9 MB / 0.5762 GB " [Timeout remaining time 634] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 52.5] 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 645] Reference file matches [Calling sys.exit(0), Time elapsed: 60.445618291036226]