Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 189.6 kB / 23.72 MB, free: 4.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.563/1.563, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 59.83 kB / 371 MB, free: 9.363 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.351/0.3528, allocations: 52.18 MB / 423.1 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01562/0.3685, allocations: 11.02 MB / 434.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00871/0.3772, allocations: 3.633 MB / 437.8 MB, free: 4 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002381/0.3795, allocations: 83.55 kB / 437.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002998/0.3825, allocations: 0.8849 MB / 438.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004002/0.3865, allocations: 0.9243 MB / 439.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001854/0.3884, allocations: 463.2 kB / 440.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005228/0.3936, allocations: 2.946 MB / 443.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002735/0.3964, allocations: 1.56 MB / 444.6 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00252/0.3989, allocations: 1.41 MB / 446 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003265/0.4022, allocations: 1.798 MB / 447.8 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007592/0.4029, allocations: 372 kB / 448.2 MB, free: 5.492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001162/0.4041, allocations: 479.8 kB / 448.7 MB, free: 5.023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001258/0.4053, allocations: 1.099 MB / 449.8 MB, free: 3.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00224/0.4076, allocations: 1.672 MB / 451.4 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006704/0.4143, allocations: 4.896 MB / 456.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.4143, allocations: 0 / 456.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4143, allocations: 0 / 456.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001538/0.4144, allocations: 0 / 456.3 MB, free: 13.33 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.008584/0.423, allocations: 3.39 MB / 459.7 MB, free: 9.887 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.4231, allocations: 12.03 kB / 459.7 MB, free: 9.875 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009464/0.424, allocations: 354.8 kB / 460.1 MB, free: 9.527 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004003/0.428, allocations: 1.756 MB / 461.8 MB, free: 7.734 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001827/0.4282, allocations: 189.4 kB / 462 MB, free: 7.547 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004698/0.4287, allocations: 251.9 kB / 462.3 MB, free: 7.301 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006559/0.4352, allocations: 3.283 MB / 465.6 MB, free: 3.938 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.156e-05/0.4353, allocations: 7.938 kB / 465.6 MB, free: 3.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002457/0.4355, allocations: 100 kB / 465.7 MB, free: 3.832 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001509/0.4357, allocations: 124.9 kB / 465.8 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005039/0.4407, allocations: 2.748 MB / 468.5 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01814/0.4589, allocations: 10.23 MB / 478.8 MB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001962/0.4608, allocations: 1.07 MB / 479.8 MB, free: 5.262 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001264/0.4621, allocations: 0.7034 MB / 480.5 MB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000238/0.4623, allocations: 52.94 kB / 480.6 MB, free: 4.504 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.553e-05/0.4624, allocations: 47.5 kB / 480.6 MB, free: 4.445 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 2.826e-06/0.4624, allocations: 0 / 480.6 MB, free: 4.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01638/0.4788, allocations: 6.648 MB / 487.3 MB, free: 13.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/0.4788, allocations: 64.41 kB / 487.3 MB, free: 13.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002915/0.4817, allocations: 1.786 MB / 489.1 MB, free: 11.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001664/0.4819, allocations: 45.7 kB / 489.2 MB, free: 11.86 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001086/0.483, allocations: 1.306 MB / 490.5 MB, free: 10.54 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004829/0.4835, allocations: 448.2 kB / 490.9 MB, free: 10.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005306/0.484, allocations: 311.3 kB / 491.2 MB, free: 9.781 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.4841, allocations: 305.1 kB / 491.5 MB, free: 9.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001289/0.4854, allocations: 0.7769 MB / 492.3 MB, free: 8.703 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001694/0.4871, allocations: 1.28 MB / 493.6 MB, free: 7.195 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003131/0.4902, allocations: 2.214 MB / 495.8 MB, free: 4.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.125e-05/0.4902, allocations: 4 kB / 495.8 MB, free: 4.746 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004532/0.4948, allocations: 2.483 MB / 498.3 MB, free: 2.242 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.247e-05/0.4948, allocations: 12 kB / 498.3 MB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.211e-05/0.4948, allocations: 16 kB / 498.3 MB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000677/0.4955, allocations: 251.7 kB / 498.6 MB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001549/0.4971, allocations: 415.3 kB / 499 MB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003098/0.5002, allocations: 3.028 MB / 0.4902 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/0.5018, allocations: 135.8 kB / 0.4903 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/0.502, allocations: 68 kB / 0.4904 GB, free: 14.09 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.001633/0.5036, allocations: 0.8232 MB / 0.4912 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004955/0.5041, allocations: 194.7 kB / 0.4914 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003821/0.5079, allocations: 2.039 MB / 0.4934 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.5079, allocations: 16 kB / 0.4934 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.5079, allocations: 0 / 0.4934 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/0.508, allocations: 7.969 kB / 0.4934 GB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009378/0.5173, allocations: 4.713 MB / 0.498 GB, free: 6.172 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.257e-06/0.5173, allocations: 4 kB / 0.498 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/0.5185, allocations: 259.6 kB / 0.4983 GB, free: 5.914 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005907/0.5191, allocations: 203.5 kB / 0.4985 GB, free: 5.703 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.81e-05/0.5192, allocations: 27.98 kB / 0.4985 GB, free: 5.676 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002954/0.5221, allocations: 3.008 MB / 0.5014 GB, free: 2.438 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.5221, allocations: 0 / 0.5014 GB, free: 2.438 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005141/0.5273, allocations: 3.144 MB / 0.5045 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001337/0.5286, allocations: 358.6 kB / 0.5048 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004874/0.5291, allocations: 24 kB / 0.5049 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001213/0.5303, allocations: 91.88 kB / 0.505 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.5305, allocations: 92.77 kB / 0.505 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.882e-05/0.5306, allocations: 32 kB / 0.5051 GB, free: 14.65 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002418/0.533, allocations: 1.224 MB / 0.5063 GB, free: 13.44 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.533, allocations: 0 / 0.5063 GB, free: 13.44 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00185/0.5349, allocations: 487.9 kB / 0.5067 GB, free: 12.96 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.0004713/0.5353, allocations: 202.8 kB / 0.5069 GB, free: 12.76 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004178/0.5395, allocations: 2.125 MB / 0.509 GB, free: 10.6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.78e-06/0.5395, allocations: 0.875 kB / 0.509 GB, free: 10.6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001967/0.5415, allocations: 1.121 MB / 0.5101 GB, free: 9.445 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002843/0.5443, allocations: 0.4902 MB / 0.5106 GB, free: 8.965 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009928/0.5543, allocations: 4.971 MB / 0.5154 GB, free: 3.926 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002424/0.5567, allocations: 2.01 MB / 0.5174 GB, free: 1.879 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001746/0.5584, allocations: 0.496 MB / 0.5179 GB, free: 1.379 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004504/0.5589, allocations: 139.4 kB / 0.518 GB, free: 1.242 MB / 430.1 MB Notification: Performance of SimCode: time 1.363e-06/0.5589, allocations: 4 kB / 0.518 GB, free: 1.238 MB / 430.1 MB Notification: Performance of Templates: time 0.2939/0.8528, allocations: 27.54 MB / 0.5449 GB, free: 101.5 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 6.0252797501161695]