Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.001394/0.001394, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 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.001542/0.001542, allocations: 205.4 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.511/1.511, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.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_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 47.92 kB / 378.2 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2555, allocations: 53.37 MB / 431.6 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01349/0.269, allocations: 9.661 MB / 441.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007411/0.2764, allocations: 3.474 MB / 444.7 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002248/0.2787, allocations: 91.44 kB / 444.8 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002503/0.2812, allocations: 0.8034 MB / 445.6 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003159/0.2844, allocations: 0.9204 MB / 446.5 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001199/0.2856, allocations: 471.3 kB / 447 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003888/0.2894, allocations: 2.942 MB / 449.9 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002252/0.2917, allocations: 1.564 MB / 451.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002328/0.294, allocations: 1.421 MB / 452.9 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002718/0.2967, allocations: 1.802 MB / 454.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005333/0.2973, allocations: 372 kB / 455.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009541/0.2982, allocations: 487.8 kB / 455.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001173/0.2994, allocations: 1.095 MB / 456.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001621/0.301, allocations: 1.346 MB / 458 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005439/0.3065, allocations: 4.938 MB / 462.9 MB, free: 7.152 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3065, allocations: 0 / 462.9 MB, free: 7.152 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3065, allocations: 0 / 462.9 MB, free: 7.152 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.3e-05/0.3065, allocations: 0 / 462.9 MB, free: 7.152 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.00714/0.3137, allocations: 3.405 MB / 466.4 MB, free: 3.695 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.3137, allocations: 8.031 kB / 466.4 MB, free: 3.688 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009979/0.3147, allocations: 362.8 kB / 466.7 MB, free: 3.332 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003702/0.3184, allocations: 1.76 MB / 468.5 MB, free: 1.535 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001706/0.3186, allocations: 193.3 kB / 468.7 MB, free: 1.344 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000409/0.319, allocations: 255.9 kB / 468.9 MB, free: 1.094 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005984/0.325, allocations: 3.362 MB / 472.3 MB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.489e-05/0.3251, allocations: 7.953 kB / 472.3 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002611/0.3253, allocations: 100 kB / 472.4 MB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000165/0.3255, allocations: 120.9 kB / 472.5 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004899/0.3304, allocations: 2.744 MB / 475.2 MB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01635/0.3467, allocations: 9.036 MB / 484.3 MB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001945/0.3487, allocations: 1.067 MB / 485.3 MB, free: 192 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001288/0.35, allocations: 0.7106 MB / 486.1 MB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002329/0.3502, allocations: 48.97 kB / 486.1 MB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001343/0.3503, allocations: 51.48 kB / 486.2 MB, free: 15.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.627e-06/0.3503, allocations: 0 / 486.2 MB, free: 15.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01593/0.3663, allocations: 6.617 MB / 492.8 MB, free: 8.715 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.744e-05/0.3663, allocations: 68.34 kB / 492.8 MB, free: 8.637 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002645/0.369, allocations: 1.641 MB / 494.5 MB, free: 6.988 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.435e-05/0.3691, allocations: 49.7 kB / 494.5 MB, free: 6.934 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001121/0.3702, allocations: 1.329 MB / 495.9 MB, free: 5.594 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004105/0.3706, allocations: 444.2 kB / 496.3 MB, free: 5.156 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005015/0.3711, allocations: 299.4 kB / 496.6 MB, free: 4.855 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.3712, allocations: 305.1 kB / 496.9 MB, free: 4.555 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001352/0.3726, allocations: 0.7769 MB / 497.7 MB, free: 3.777 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001678/0.3743, allocations: 1.292 MB / 498.9 MB, free: 2.258 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003303/0.3776, allocations: 2.21 MB / 0.4894 GB, free: 15.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/0.3776, allocations: 4 kB / 0.4894 GB, free: 15.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004356/0.3819, allocations: 2.459 MB / 0.4918 GB, free: 13.33 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.86e-05/0.382, allocations: 12.84 kB / 0.4918 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.423e-05/0.382, allocations: 16 kB / 0.4918 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006777/0.3827, allocations: 251.2 kB / 0.4921 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001591/0.3843, allocations: 415.3 kB / 0.4925 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003206/0.3875, allocations: 2.993 MB / 0.4954 GB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001454/0.3889, allocations: 131.7 kB / 0.4955 GB, free: 9.316 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001293/0.3891, allocations: 76.11 kB / 0.4956 GB, free: 9.242 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.001572/0.3906, allocations: 0.8172 MB / 0.4964 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003277/0.391, allocations: 182.8 kB / 0.4966 GB, free: 8.234 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003624/0.3946, allocations: 2.03 MB / 0.4986 GB, free: 6.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.3946, allocations: 12 kB / 0.4986 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3946, allocations: 0 / 0.4986 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.514e-05/0.3946, allocations: 7.969 kB / 0.4986 GB, free: 6.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007595/0.4022, allocations: 4.115 MB / 0.5026 GB, free: 1.961 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.775e-06/0.4022, allocations: 4 kB / 0.5026 GB, free: 1.957 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/0.4034, allocations: 259.6 kB / 0.5028 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005773/0.404, allocations: 195.3 kB / 0.503 GB, free: 1.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.477e-05/0.404, allocations: 27.98 kB / 0.5031 GB, free: 1.473 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002854/0.4069, allocations: 2.962 MB / 0.5059 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4069, allocations: 0 / 0.5059 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004789/0.4117, allocations: 3.132 MB / 0.509 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009425/0.4126, allocations: 334.7 kB / 0.5093 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002199/0.4128, allocations: 24 kB / 0.5093 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009437/0.4138, allocations: 95.86 kB / 0.5094 GB, free: 10.67 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.414, allocations: 88.72 kB / 0.5095 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.184e-05/0.414, allocations: 36.05 kB / 0.5096 GB, free: 10.55 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001673/0.4157, allocations: 1.099 MB / 0.5106 GB, free: 9.453 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4157, allocations: 3.938 kB / 0.5106 GB, free: 9.449 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001492/0.4172, allocations: 491.9 kB / 0.5111 GB, free: 8.969 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.0003908/0.4176, allocations: 195 kB / 0.5113 GB, free: 8.77 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003578/0.4212, allocations: 2.117 MB / 0.5134 GB, free: 6.625 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.4212, allocations: 4 kB / 0.5134 GB, free: 6.621 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001871/0.4231, allocations: 1.118 MB / 0.5145 GB, free: 5.469 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001923/0.425, allocations: 447.6 kB / 0.5149 GB, free: 5.039 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007841/0.4328, allocations: 4.946 MB / 0.5197 GB, free: 28 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001765/0.4346, allocations: 1.437 MB / 0.5211 GB, free: 14.55 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001256/0.4358, allocations: 490.8 kB / 0.5216 GB, free: 14.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004346/0.4363, allocations: 131.4 kB / 0.5217 GB, free: 13.94 MB / 446.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4363, allocations: 0 / 0.5217 GB, free: 13.94 MB / 446.1 MB Notification: Performance of Templates: time 0.2637/0.7, allocations: 28.62 MB / 0.5497 GB, free: 96.12 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 5.804454423952848]