Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.001358/0.001358, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 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.001126/0.001126, allocations: 170 kB / 24.82 MB, free: 9.254 MB / 18.57 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 0.9971/0.9971, allocations: 177 MB / 205.1 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] 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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.943e-06/1.943e-06, allocations: 0 / 273.4 MB, free: 1.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.781e-05/2.976e-05, allocations: 5.125 kB / 273.4 MB, free: 1.199 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.016/0.01603, allocations: 15.04 MB / 288.4 MB, free: 2.078 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1522/0.1683, allocations: 5.213 MB / 293.6 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001952/0.1702, allocations: 128.2 kB / 293.7 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002504/0.1727, allocations: 1.086 MB / 294.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002506/0.1752, allocations: 1.321 MB / 296.2 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00135/0.1766, allocations: 0.9008 MB / 297.1 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003028/0.1796, allocations: 3.813 MB / 300.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002099/0.1817, allocations: 1.847 MB / 302.7 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003241/0.1849, allocations: 3.024 MB / 305.7 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002947/0.1879, allocations: 1.776 MB / 307.5 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001911/0.1898, allocations: 466.8 kB / 308 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00345/0.1932, allocations: 0.6768 MB / 308.6 MB, free: 10.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001689/0.1949, allocations: 1.144 MB / 309.8 MB, free: 9.344 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002416/0.1973, allocations: 1.364 MB / 311.2 MB, free: 8.602 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003088/0.2004, allocations: 3.299 MB / 314.5 MB, free: 6.512 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2004, allocations: 0 / 314.5 MB, free: 6.512 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2004, allocations: 0 / 314.5 MB, free: 6.512 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001234/0.2006, allocations: 0 / 314.5 MB, free: 6.512 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.004755/0.2053, allocations: 4.338 MB / 318.8 MB, free: 2.312 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.2054, allocations: 15.98 kB / 318.8 MB, free: 2.297 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001593/0.207, allocations: 0.9431 MB / 319.8 MB, free: 1.355 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001992/0.2089, allocations: 2.117 MB / 321.9 MB, free: 15.22 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/0.2091, allocations: 237.2 kB / 322.1 MB, free: 14.99 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002768/0.2093, allocations: 306.9 kB / 322.4 MB, free: 14.69 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002492/0.2118, allocations: 2.251 MB / 324.7 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.875e-05/0.2119, allocations: 9.266 kB / 324.7 MB, free: 12.47 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001782/0.2121, allocations: 135.7 kB / 324.8 MB, free: 12.34 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.504e-05/0.2122, allocations: 153.1 kB / 324.9 MB, free: 12.2 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.2135, allocations: 0.9361 MB / 325.9 MB, free: 11.24 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009701/0.2232, allocations: 10.73 MB / 336.6 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001428/0.2247, allocations: 1.156 MB / 337.8 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000605/0.2253, allocations: 447.7 kB / 338.2 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001871/0.2271, allocations: 1.658 MB / 339.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/0.2272, allocations: 46.39 kB / 339.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=107): time 1.864e-06/0.2272, allocations: 0 / 339.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=141): time 0.004005/0.2312, allocations: 3.072 MB / 343 MB, free: 10.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.695e-05/0.2312, allocations: 68.7 kB / 343 MB, free: 10.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001099/0.2323, allocations: 1.491 MB / 344.5 MB, free: 9.043 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.735e-05/0.2324, allocations: 49.7 kB / 344.6 MB, free: 8.988 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007266/0.2331, allocations: 1.682 MB / 346.3 MB, free: 7.367 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002633/0.2333, allocations: 0.5192 MB / 346.8 MB, free: 6.879 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003151/0.2337, allocations: 348.2 kB / 347.1 MB, free: 6.562 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.536e-05/0.2338, allocations: 488.8 kB / 347.6 MB, free: 6.082 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002679/0.234, allocations: 207.8 kB / 347.8 MB, free: 5.879 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006366/0.2347, allocations: 1.112 MB / 348.9 MB, free: 4.434 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.2357, allocations: 1.473 MB / 350.4 MB, free: 2.637 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.756e-06/0.2358, allocations: 8 kB / 350.4 MB, free: 2.629 MB / 298.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001433/0.2372, allocations: 1.419 MB / 351.8 MB, free: 1.188 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.2372, allocations: 12.84 kB / 351.8 MB, free: 1.176 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.2372, allocations: 20 kB / 351.8 MB, free: 1.156 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001566/0.2374, allocations: 98.94 kB / 351.9 MB, free: 1.047 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008106/0.2382, allocations: 435.3 kB / 352.4 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006609/0.2388, allocations: 1.753 MB / 354.1 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004983/0.2393, allocations: 63.94 kB / 354.2 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.427e-05/0.2394, allocations: 68 kB / 354.2 MB, free: 14.63 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (231): * Single equations (assignments): 228 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004079/0.2398, allocations: 286.6 kB / 354.5 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002041/0.24, allocations: 246.6 kB / 354.8 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001062/0.2411, allocations: 0.9729 MB / 355.7 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.565e-06/0.2411, allocations: 12 kB / 355.8 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.2411, allocations: 4 kB / 355.8 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.2411, allocations: 7.969 kB / 355.8 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002851/0.244, allocations: 2.724 MB / 358.5 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.244, allocations: 4 kB / 358.5 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006087/0.2446, allocations: 271.6 kB / 358.8 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001347/0.2447, allocations: 73.92 kB / 358.8 MB, free: 10.15 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.938e-05/0.2448, allocations: 27.98 kB / 358.9 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005779/0.2453, allocations: 1.714 MB / 360.6 MB, free: 8.301 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.2453, allocations: 4 kB / 360.6 MB, free: 8.297 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001839/0.2472, allocations: 1.414 MB / 362 MB, free: 6.84 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005054/0.2477, allocations: 317.1 kB / 362.3 MB, free: 6.531 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/0.2479, allocations: 24 kB / 362.3 MB, free: 6.508 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004608/0.2483, allocations: 39.98 kB / 362.4 MB, free: 6.469 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.2484, allocations: 93.06 kB / 362.5 MB, free: 6.375 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-05/0.2485, allocations: 36 kB / 362.5 MB, free: 6.34 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006878/0.2492, allocations: 0.7853 MB / 363.3 MB, free: 5.637 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2492, allocations: 4.031 kB / 363.3 MB, free: 5.633 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001153/0.2503, allocations: 0.5234 MB / 363.8 MB, free: 5.109 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (140): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.000257/0.2506, allocations: 172.2 kB / 364 MB, free: 4.934 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.2519, allocations: 1.097 MB / 365.1 MB, free: 3.836 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.2519, allocations: 4.438 kB / 365.1 MB, free: 3.832 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005532/0.2524, allocations: 0.6175 MB / 365.7 MB, free: 3.199 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.2536, allocations: 490.8 kB / 366.2 MB, free: 2.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006396/0.26, allocations: 4.858 MB / 371 MB, free: 13.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006043/0.2606, allocations: 0.7547 MB / 371.8 MB, free: 13.04 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007871/0.2613, allocations: 280.6 kB / 372.1 MB, free: 12.76 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007874/0.2621, allocations: 0.5331 MB / 372.6 MB, free: 12.22 MB / 330.7 MB Notification: Performance of SimCode: time 9.12e-07/0.2621, allocations: 4 kB / 372.6 MB, free: 12.22 MB / 330.7 MB Notification: Performance of Templates: time 0.03595/0.2981, allocations: 25.2 MB / 397.8 MB, free: 3.438 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3669578069821]