Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001371/0.001371, allocations: 103.6 kB / 21.18 MB, free: 472 kB / 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.001516/0.001516, allocations: 214.4 kB / 24.47 MB, free: 3.793 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.4/1.4, allocations: 207.7 MB / 235.3 MB, free: 9.777 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_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|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 63.91 kB / 347.7 MB, free: 9.324 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2471, allocations: 49.16 MB / 396.9 MB, free: 9.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04158/0.2887, allocations: 34.29 MB / 431.2 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02702/0.3157, allocations: 10.27 MB / 441.5 MB, free: 6.473 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01017/0.3259, allocations: 318.1 kB / 441.8 MB, free: 6.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02173/0.3476, allocations: 8.052 MB / 449.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01416/0.3618, allocations: 3.707 MB / 453.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007627/0.3694, allocations: 2.359 MB / 455.9 MB, free: 7.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02047/0.3899, allocations: 13.51 MB / 469.4 MB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03136/0.4212, allocations: 17.23 MB / 486.6 MB, free: 9.027 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01167/0.4329, allocations: 7.231 MB / 493.9 MB, free: 1.777 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01399/0.4469, allocations: 7.777 MB / 0.4899 GB, free: 9.973 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004825/0.4517, allocations: 1.988 MB / 0.4918 GB, free: 7.984 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006462/0.4582, allocations: 2.355 MB / 0.4941 GB, free: 5.629 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004899/0.4631, allocations: 4.177 MB / 0.4982 GB, free: 1.441 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01141/0.4745, allocations: 6.113 MB / 0.5042 GB, free: 11.3 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03752/0.512, allocations: 26.6 MB / 0.5302 GB, free: 0.6172 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.879e-06/0.512, allocations: 4 kB / 0.5302 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.512, allocations: 0 / 0.5302 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0009201/0.5129, allocations: 0 / 0.5302 GB, free: 0.6133 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.05075/0.5637, allocations: 15.8 MB / 0.5456 GB, free: 0.6953 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.5637, allocations: 11.98 kB / 0.5456 GB, free: 0.6836 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05235/0.6161, allocations: 9.183 MB / 0.5546 GB, free: 7.48 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3554/0.9715, allocations: 7.528 MB / 0.5619 GB, free: 128.5 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001146/0.9726, allocations: 0.9453 MB / 0.5628 GB, free: 128.5 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00454/0.9772, allocations: 1.249 MB / 0.5641 GB, free: 128.5 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04209/1.019, allocations: 20.37 MB / 0.584 GB, free: 120.8 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003405/1.02, allocations: 28.39 kB / 0.584 GB, free: 120.8 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00204/1.022, allocations: 0.5128 MB / 0.5845 GB, free: 120.4 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007535/1.022, allocations: 0.7326 MB / 0.5852 GB, free: 120.3 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03095/1.053, allocations: 18.9 MB / 0.6037 GB, free: 106.3 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08923/1.143, allocations: 53.67 MB / 0.6561 GB, free: 52.64 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02373/1.166, allocations: 14.71 MB / 0.6704 GB, free: 41.26 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005615/1.172, allocations: 3.726 MB / 0.6741 GB, free: 37.52 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01884/1.191, allocations: 10.04 MB / 0.6839 GB, free: 27.71 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.031e-05/1.191, allocations: 69.31 kB / 0.684 GB, free: 27.64 MB / 478.1 MB Notification: Performance of pre-optimization done (n=349): time 6.032e-06/1.191, allocations: 0 / 0.684 GB, free: 27.64 MB / 478.1 MB Notification: Performance of matching and sorting (n=389): time 0.03551/1.226, allocations: 17.85 MB / 0.7014 GB, free: 10.29 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.374e-05/1.226, allocations: 94.47 kB / 0.7015 GB, free: 10.19 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00818/1.235, allocations: 5.269 MB / 0.7066 GB, free: 5.035 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007061/1.235, allocations: 97.64 kB / 0.7067 GB, free: 4.934 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002998/1.238, allocations: 6.099 MB / 0.7127 GB, free: 14.82 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001968/1.24, allocations: 1.44 MB / 0.7141 GB, free: 13.38 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002474/1.243, allocations: 1.521 MB / 0.7156 GB, free: 11.86 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/1.243, allocations: 301.1 kB / 0.7159 GB, free: 11.56 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005094/1.248, allocations: 3.08 MB / 0.7189 GB, free: 8.477 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008504/1.256, allocations: 6.805 MB / 0.7255 GB, free: 15.89 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01546/1.272, allocations: 10.59 MB / 0.7359 GB, free: 3.504 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001586/1.272, allocations: 40 kB / 0.7359 GB, free: 3.465 MB / 0.4982 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02269/1.295, allocations: 10.77 MB / 0.7464 GB, free: 8.637 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001226/1.295, allocations: 60 kB / 0.7465 GB, free: 8.578 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002541/1.295, allocations: 124 kB / 0.7466 GB, free: 8.457 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00273/1.298, allocations: 0.9614 MB / 0.7475 GB, free: 7.48 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006756/1.305, allocations: 1.825 MB / 0.7493 GB, free: 5.652 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01377/1.318, allocations: 9.716 MB / 0.7588 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006217/1.325, allocations: 451.6 kB / 0.7592 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001327/1.326, allocations: 416 kB / 0.7596 GB, free: 10.77 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009265/1.335, allocations: 4.464 MB / 0.764 GB, free: 6.285 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001569/1.337, allocations: 0.5356 MB / 0.7645 GB, free: 5.746 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.234/1.571, allocations: 6.465 MB / 0.7708 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-05/1.571, allocations: 39.31 kB / 0.7709 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/1.571, allocations: 7.844 kB / 0.7709 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.46e-05/1.571, allocations: 19.08 kB / 0.7709 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02487/1.596, allocations: 13.47 MB / 0.784 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.606e-05/1.596, allocations: 3.969 kB / 0.784 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003453/1.599, allocations: 0.7556 MB / 0.7848 GB, free: 164 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00223/1.601, allocations: 0.7894 MB / 0.7855 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003337/1.602, allocations: 84.55 kB / 0.7856 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008853/1.611, allocations: 8.843 MB / 0.7943 GB, free: 157.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/1.611, allocations: 4.5 kB / 0.7943 GB, free: 157.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0124/1.623, allocations: 9.509 MB / 0.8036 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002482/1.626, allocations: 0.9966 MB / 0.8045 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007174/1.626, allocations: 78.48 kB / 0.8046 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002235/1.628, allocations: 219.2 kB / 0.8048 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005236/1.629, allocations: 282.2 kB / 0.8051 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002329/1.629, allocations: 117.1 kB / 0.8052 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004328/1.634, allocations: 3.297 MB / 0.8084 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/1.634, allocations: 0.7812 kB / 0.8084 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007147/1.641, allocations: 1.98 MB / 0.8103 GB, free: 152.1 MB / 0.5294 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%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000588/1.641, allocations: 251.7 kB / 0.8106 GB, free: 151.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01049/1.652, allocations: 7.594 MB / 0.818 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/1.652, allocations: 0 / 0.818 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00468/1.656, allocations: 3.157 MB / 0.8211 GB, free: 147.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006279/1.663, allocations: 1.18 MB / 0.8222 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03301/1.696, allocations: 21.19 MB / 0.8429 GB, free: 128.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008964/1.705, allocations: 7.199 MB / 0.85 GB, free: 121.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006051/1.711, allocations: 2.318 MB / 0.8522 GB, free: 119.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001383/1.712, allocations: 415.3 kB / 0.8526 GB, free: 119 MB / 0.5294 GB Notification: Performance of SimCode: time 8.91e-07/1.712, allocations: 0 / 0.8526 GB, free: 119 MB / 0.5294 GB Notification: Performance of Templates: time 0.1187/1.831, allocations: 78.72 MB / 0.9295 GB, free: 40.22 MB / 0.5294 GB " [Timeout remaining time 658] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 9.003697322681546]