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.00164/0.00164, allocations: 120 kB / 18.5 MB, free: 4.52 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.002134/0.002134, allocations: 213.6 kB / 21.46 MB, free: 1.566 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.481/1.481, allocations: 230.2 MB / 254.5 MB, free: 15.22 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.003107/0.003107, allocations: 63.91 kB / 373.8 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1381, allocations: 53.32 MB / 427.2 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.2821/0.4203, allocations: 11 MB / 438.2 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008517/0.4288, allocations: 3.677 MB / 441.8 MB, free: 3.785 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002758/0.4315, allocations: 64.38 kB / 441.9 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00297/0.4345, allocations: 0.8833 MB / 442.8 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003927/0.4384, allocations: 0.9174 MB / 443.7 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001462/0.4399, allocations: 463.4 kB / 444.2 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004255/0.4441, allocations: 2.946 MB / 447.1 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002707/0.4468, allocations: 1.982 MB / 449.1 MB, free: 32 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002797/0.4496, allocations: 1.39 MB / 450.5 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00418/0.4538, allocations: 1.791 MB / 452.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000922/0.4547, allocations: 377.2 kB / 452.6 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001554/0.4563, allocations: 487.2 kB / 453.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001506/0.4578, allocations: 1.075 MB / 454.2 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002913/0.4607, allocations: 1.679 MB / 455.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007739/0.4685, allocations: 4.907 MB / 460.8 MB, free: 9.867 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.4685, allocations: 4 kB / 460.8 MB, free: 9.863 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4685, allocations: 0.9375 kB / 460.8 MB, free: 9.863 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001685/0.4686, allocations: 0 / 460.8 MB, free: 9.863 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.009322/0.478, allocations: 3.477 MB / 464.3 MB, free: 7.441 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.478, allocations: 9.094 kB / 464.3 MB, free: 7.441 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00136/0.4794, allocations: 362.3 kB / 464.6 MB, free: 7.258 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004037/0.4834, allocations: 1.844 MB / 466.5 MB, free: 5.941 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002177/0.4836, allocations: 198.8 kB / 466.7 MB, free: 5.848 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004322/0.4841, allocations: 254.4 kB / 466.9 MB, free: 5.758 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007273/0.4913, allocations: 3.281 MB / 470.2 MB, free: 3.816 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.669e-05/0.4914, allocations: 7.344 kB / 470.2 MB, free: 3.812 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002873/0.4917, allocations: 105.5 kB / 470.3 MB, free: 3.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001842/0.4919, allocations: 125.4 kB / 470.4 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006148/0.498, allocations: 2.747 MB / 473.2 MB, free: 2.309 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01983/0.5179, allocations: 10.41 MB / 483.6 MB, free: 7.965 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002174/0.52, allocations: 1.303 MB / 484.9 MB, free: 6.602 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001325/0.5214, allocations: 0.71 MB / 485.6 MB, free: 5.891 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003492/0.5217, allocations: 203.9 kB / 485.8 MB, free: 5.656 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.965e-05/0.5218, allocations: 43.56 kB / 485.8 MB, free: 5.602 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 2.965e-06/0.5218, allocations: 0 / 485.8 MB, free: 5.602 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01822/0.54, allocations: 6.943 MB / 492.8 MB, free: 14.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.452e-05/0.54, allocations: 64.41 kB / 492.8 MB, free: 14.47 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003377/0.5434, allocations: 1.79 MB / 494.6 MB, free: 12.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000186/0.5436, allocations: 49.7 kB / 494.7 MB, free: 12.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001357/0.545, allocations: 1.31 MB / 496 MB, free: 11.3 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005459/0.5455, allocations: 452.1 kB / 496.4 MB, free: 10.86 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005649/0.5461, allocations: 295.5 kB / 496.7 MB, free: 10.56 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.5462, allocations: 305.1 kB / 497 MB, free: 10.26 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001358/0.5476, allocations: 0.7769 MB / 497.8 MB, free: 9.484 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001828/0.5494, allocations: 1.284 MB / 499.1 MB, free: 7.977 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003322/0.5527, allocations: 2.214 MB / 0.4895 GB, free: 5.531 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.339e-05/0.5528, allocations: 4 kB / 0.4895 GB, free: 5.527 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004704/0.5575, allocations: 2.487 MB / 0.492 GB, free: 3.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.248e-05/0.5575, allocations: 12 kB / 0.492 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.732e-05/0.5575, allocations: 16 kB / 0.492 GB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006866/0.5582, allocations: 244.1 kB / 0.4922 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001514/0.5597, allocations: 411.3 kB / 0.4926 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00321/0.5629, allocations: 3.24 MB / 0.4958 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/0.5647, allocations: 135.7 kB / 0.4959 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000141/0.5648, allocations: 71.98 kB / 0.496 GB, free: 14.61 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.00166/0.5665, allocations: 0.8251 MB / 0.4968 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004583/0.5669, allocations: 190.8 kB / 0.497 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003585/0.5705, allocations: 2.054 MB / 0.499 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.5705, allocations: 13.08 kB / 0.499 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.5705, allocations: 0 / 0.499 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.5705, allocations: 3.984 kB / 0.499 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009622/0.5802, allocations: 4.74 MB / 0.5036 GB, free: 6.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/0.5802, allocations: 0 / 0.5036 GB, free: 6.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001201/0.5814, allocations: 271.8 kB / 0.5039 GB, free: 6.395 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006258/0.582, allocations: 199.3 kB / 0.5041 GB, free: 6.188 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/0.5821, allocations: 27.98 kB / 0.5041 GB, free: 6.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003235/0.5853, allocations: 3.222 MB / 0.5072 GB, free: 2.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.191e-06/0.5853, allocations: 4 kB / 0.5072 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005737/0.5911, allocations: 3.137 MB / 0.5103 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001321/0.5924, allocations: 439.7 kB / 0.5107 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007193/0.5931, allocations: 32.05 kB / 0.5108 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001525/0.5946, allocations: 95.81 kB / 0.5108 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002351/0.5949, allocations: 80.83 kB / 0.5109 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.915e-05/0.595, allocations: 35.98 kB / 0.511 GB, free: 14.77 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003067/0.598, allocations: 1.22 MB / 0.5121 GB, free: 13.56 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.598, allocations: 4 kB / 0.5122 GB, free: 13.56 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00275/0.6008, allocations: 491.9 kB / 0.5126 GB, free: 13.08 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.0006007/0.6014, allocations: 191.6 kB / 0.5128 GB, free: 12.89 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004796/0.6062, allocations: 2.28 MB / 0.515 GB, free: 10.54 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.6062, allocations: 0 / 0.515 GB, free: 10.54 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002317/0.6085, allocations: 1.273 MB / 0.5163 GB, free: 9.199 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00344/0.612, allocations: 0.489 MB / 0.5168 GB, free: 8.734 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01077/0.6227, allocations: 4.941 MB / 0.5216 GB, free: 3.723 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002165/0.6249, allocations: 2.006 MB / 0.5235 GB, free: 1.684 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001783/0.6267, allocations: 0.496 MB / 0.524 GB, free: 1.184 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005667/0.6272, allocations: 139.4 kB / 0.5242 GB, free: 1.047 MB / 430.1 MB Notification: Performance of SimCode: time 1.413e-06/0.6272, allocations: 0 / 0.5242 GB, free: 1.047 MB / 430.1 MB Notification: Performance of Templates: time 0.05595/0.6832, allocations: 26.7 MB / 0.5502 GB, free: 6.551 MB / 462.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/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_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: 5.886804489418864]