Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.001417/0.001417, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.001655/0.001655, allocations: 217 kB / 24.5 MB, free: 4.133 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.645/1.645, allocations: 230.5 MB / 258.1 MB, free: 8.004 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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002167/0.002167, allocations: 59.89 kB / 379.1 MB, free: 2.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2924, allocations: 53.41 MB / 432.5 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01371/0.3061, allocations: 11.05 MB / 443.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008447/0.3145, allocations: 3.69 MB / 447.2 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001981/0.3165, allocations: 83.44 kB / 447.3 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002645/0.3191, allocations: 0.8849 MB / 448.2 MB, free: 7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003656/0.3228, allocations: 0.9165 MB / 449.1 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001417/0.3242, allocations: 475.2 kB / 449.6 MB, free: 5.613 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004297/0.3285, allocations: 2.95 MB / 452.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002387/0.3309, allocations: 1.572 MB / 454.1 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002309/0.3332, allocations: 1.413 MB / 455.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002951/0.3362, allocations: 1.802 MB / 457.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007834/0.3369, allocations: 376 kB / 457.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001245/0.3382, allocations: 487.8 kB / 458.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001226/0.3394, allocations: 1.091 MB / 459.2 MB, free: 11.85 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002217/0.3416, allocations: 1.676 MB / 460.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006142/0.3478, allocations: 4.908 MB / 465.8 MB, free: 5.242 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.3478, allocations: 0 / 465.8 MB, free: 5.242 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3478, allocations: 0 / 465.8 MB, free: 5.242 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001423/0.3479, allocations: 0 / 465.8 MB, free: 5.242 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.00791/0.3558, allocations: 3.413 MB / 469.2 MB, free: 1.777 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.3559, allocations: 8.031 kB / 469.2 MB, free: 1.77 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001016/0.3569, allocations: 362.8 kB / 469.6 MB, free: 1.414 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003775/0.3607, allocations: 1.752 MB / 471.3 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001723/0.3608, allocations: 189.4 kB / 471.5 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004381/0.3613, allocations: 267.9 kB / 471.8 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005982/0.3673, allocations: 3.275 MB / 475.1 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.16e-05/0.3673, allocations: 7.938 kB / 475.1 MB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002279/0.3676, allocations: 108 kB / 475.2 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001446/0.3677, allocations: 124.9 kB / 475.3 MB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005171/0.3729, allocations: 2.744 MB / 478 MB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02095/0.3938, allocations: 10.21 MB / 488.3 MB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001944/0.3958, allocations: 1.069 MB / 489.3 MB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001229/0.397, allocations: 0.7109 MB / 490 MB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002535/0.3972, allocations: 50.05 kB / 490.1 MB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.342e-05/0.3973, allocations: 55.48 kB / 490.1 MB, free: 12.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 2.926e-06/0.3973, allocations: 0 / 490.1 MB, free: 12.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01518/0.4125, allocations: 6.645 MB / 496.8 MB, free: 5.656 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.4125, allocations: 64.41 kB / 496.8 MB, free: 5.582 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002735/0.4153, allocations: 1.798 MB / 498.6 MB, free: 3.785 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000136/0.4154, allocations: 49.7 kB / 498.7 MB, free: 3.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.4164, allocations: 1.298 MB / 500 MB, free: 2.418 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004141/0.4168, allocations: 460.1 kB / 0.4887 GB, free: 1.965 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004688/0.4173, allocations: 295.4 kB / 0.489 GB, free: 1.668 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.4174, allocations: 309.1 kB / 0.4893 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.4187, allocations: 0.7769 MB / 0.49 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001639/0.4203, allocations: 1.284 MB / 0.4913 GB, free: 15.07 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003063/0.4234, allocations: 2.21 MB / 0.4935 GB, free: 12.63 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.614e-05/0.4234, allocations: 8 kB / 0.4935 GB, free: 12.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004336/0.4277, allocations: 2.483 MB / 0.4959 GB, free: 10.12 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.991e-05/0.4277, allocations: 15.98 kB / 0.4959 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.517e-05/0.4278, allocations: 19.94 kB / 0.4959 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006373/0.4284, allocations: 239.2 kB / 0.4961 GB, free: 9.836 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00151/0.4299, allocations: 415.3 kB / 0.4965 GB, free: 9.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002904/0.4328, allocations: 3.031 MB / 0.4995 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/0.4344, allocations: 123.8 kB / 0.4996 GB, free: 6.047 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000141/0.4345, allocations: 75.98 kB / 0.4997 GB, free: 5.973 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001459/0.436, allocations: 0.8319 MB / 0.5005 GB, free: 5.133 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004131/0.4364, allocations: 194.7 kB / 0.5007 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003504/0.4399, allocations: 2.043 MB / 0.5027 GB, free: 2.875 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/0.4399, allocations: 12 kB / 0.5027 GB, free: 2.863 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.4399, allocations: 0 / 0.5027 GB, free: 2.863 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.528e-05/0.4399, allocations: 7.969 kB / 0.5027 GB, free: 2.855 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00848/0.4484, allocations: 4.709 MB / 0.5073 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.054e-06/0.4484, allocations: 4 kB / 0.5073 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00116/0.4496, allocations: 267.9 kB / 0.5076 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005596/0.4501, allocations: 195.3 kB / 0.5078 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.371e-05/0.4502, allocations: 27.98 kB / 0.5078 GB, free: 13.56 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00285/0.4531, allocations: 3.008 MB / 0.5107 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.4531, allocations: 4 kB / 0.5107 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005127/0.4582, allocations: 3.144 MB / 0.5138 GB, free: 7.117 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001294/0.4595, allocations: 354.6 kB / 0.5141 GB, free: 6.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003038/0.4598, allocations: 32.06 kB / 0.5142 GB, free: 6.738 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.4608, allocations: 99.75 kB / 0.5143 GB, free: 6.641 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/0.461, allocations: 84.77 kB / 0.5143 GB, free: 6.559 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.645e-05/0.4611, allocations: 32 kB / 0.5144 GB, free: 6.527 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001977/0.463, allocations: 1.228 MB / 0.5156 GB, free: 5.309 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.463, allocations: 4 kB / 0.5156 GB, free: 5.305 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001747/0.4648, allocations: 487.9 kB / 0.516 GB, free: 4.828 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.0004496/0.4652, allocations: 194.8 kB / 0.5162 GB, free: 4.629 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003858/0.4691, allocations: 2.129 MB / 0.5183 GB, free: 2.469 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.4691, allocations: 3.938 kB / 0.5183 GB, free: 2.465 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001922/0.471, allocations: 1.118 MB / 0.5194 GB, free: 1.316 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002517/0.4735, allocations: 0.5034 MB / 0.5199 GB, free: 0.832 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00923/0.4828, allocations: 5.017 MB / 0.5248 GB, free: 11.74 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001899/0.4847, allocations: 1.978 MB / 0.5267 GB, free: 9.727 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007267/0.4854, allocations: 151.4 kB / 0.5269 GB, free: 9.578 MB / 446.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4854, allocations: 0 / 0.5269 GB, free: 9.578 MB / 446.1 MB Notification: Performance of Templates: time 0.3129/0.7983, allocations: 83.24 MB / 0.6081 GB, free: 34.67 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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: 13.769606705987826]