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.001589/0.001589, allocations: 81.16 kB / 21.25 MB, free: 0.5469 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.001864/0.001864, allocations: 158.1 kB / 24.5 MB, free: 3.719 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.487/1.487, allocations: 177.1 MB / 204.7 MB, free: 8.98 MB / 190.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|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.1.|smpm.is.2.|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 0.001949/0.001949, allocations: 65.39 kB / 325.6 MB, free: 184 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08568/0.08763, allocations: 53.38 MB / 378.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01742/0.105, allocations: 13.79 MB / 392.7 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009451/0.1145, allocations: 5.069 MB / 397.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001529/0.116, allocations: 127.2 kB / 397.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00255/0.1186, allocations: 1.06 MB / 399 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003207/0.1218, allocations: 1.274 MB / 400.3 MB, free: 10.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001981/0.1238, allocations: 0.9078 MB / 401.2 MB, free: 9.117 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004301/0.1281, allocations: 3.658 MB / 404.8 MB, free: 5.449 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0026/0.1307, allocations: 1.835 MB / 406.7 MB, free: 3.543 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002326/0.133, allocations: 1.787 MB / 408.5 MB, free: 1.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003013/0.136, allocations: 2.008 MB / 410.5 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006771/0.1367, allocations: 484 kB / 410.9 MB, free: 15.26 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001289/0.138, allocations: 0.6795 MB / 411.6 MB, free: 14.58 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001121/0.1391, allocations: 1.157 MB / 412.8 MB, free: 13.42 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001825/0.1409, allocations: 1.618 MB / 414.4 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006793/0.1477, allocations: 6.345 MB / 420.7 MB, free: 5.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1477, allocations: 3.938 kB / 420.7 MB, free: 5.426 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1477, allocations: 0 / 420.7 MB, free: 5.426 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.969e-05/0.1478, allocations: 0 / 420.7 MB, free: 5.426 MB / 382.1 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.009872/0.1577, allocations: 4.283 MB / 425 MB, free: 1.082 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.1577, allocations: 15.98 kB / 425 MB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002867/0.1606, allocations: 0.631 MB / 425.7 MB, free: 444 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004184/0.1648, allocations: 2.21 MB / 427.9 MB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002142/0.165, allocations: 238.7 kB / 428.1 MB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004785/0.1655, allocations: 312.1 kB / 428.4 MB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006924/0.1724, allocations: 4.126 MB / 432.5 MB, free: 9.434 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-05/0.1725, allocations: 7.938 kB / 432.6 MB, free: 9.426 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002912/0.1728, allocations: 128 kB / 432.7 MB, free: 9.301 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001555/0.1729, allocations: 146.2 kB / 432.8 MB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005863/0.1788, allocations: 3.386 MB / 436.2 MB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01858/0.1974, allocations: 11.31 MB / 447.5 MB, free: 10.05 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003643/0.201, allocations: 1.753 MB / 449.3 MB, free: 8.34 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001688/0.2027, allocations: 0.9182 MB / 450.2 MB, free: 7.426 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004343/0.207, allocations: 2.16 MB / 452.3 MB, free: 5.242 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.808e-05/0.2071, allocations: 43.56 kB / 452.4 MB, free: 5.191 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.775e-06/0.2071, allocations: 0 / 452.4 MB, free: 5.191 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01212/0.2192, allocations: 5.815 MB / 458.2 MB, free: 15.34 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.2193, allocations: 68.66 kB / 458.3 MB, free: 15.26 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002592/0.2218, allocations: 1.756 MB / 460 MB, free: 13.5 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001034/0.2219, allocations: 45.7 kB / 460.1 MB, free: 13.45 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001213/0.2232, allocations: 1.578 MB / 461.7 MB, free: 11.86 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004559/0.2236, allocations: 0.5036 MB / 462.2 MB, free: 11.35 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005256/0.2241, allocations: 339.4 kB / 462.5 MB, free: 11.01 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.2243, allocations: 301.1 kB / 462.8 MB, free: 10.71 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001258/0.2255, allocations: 0.773 MB / 463.6 MB, free: 9.941 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001812/0.2273, allocations: 1.404 MB / 465 MB, free: 8.258 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00339/0.2307, allocations: 2.312 MB / 467.3 MB, free: 5.68 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.414e-05/0.2307, allocations: 4 kB / 467.3 MB, free: 5.676 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004528/0.2353, allocations: 2.467 MB / 469.7 MB, free: 3.191 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/0.2353, allocations: 16 kB / 469.8 MB, free: 3.176 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.586e-05/0.2353, allocations: 23.94 kB / 469.8 MB, free: 3.152 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003829/0.2357, allocations: 126.5 kB / 469.9 MB, free: 3.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001826/0.2375, allocations: 475.2 kB / 470.4 MB, free: 2.555 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001161/0.2387, allocations: 1.287 MB / 471.7 MB, free: 1.164 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001392/0.2401, allocations: 119.8 kB / 471.8 MB, free: 1.047 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001396/0.2402, allocations: 83.98 kB / 471.9 MB, free: 0.9648 MB / 430.1 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 (232): * Single equations (assignments): 229 * 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.1707/0.4109, allocations: 0.9817 MB / 472.8 MB, free: 81.67 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005143/0.4114, allocations: 198.1 kB / 473 MB, free: 81.67 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003348/0.4147, allocations: 1.948 MB / 475 MB, free: 81.57 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/0.4148, allocations: 21.39 kB / 475 MB, free: 81.57 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.4148, allocations: 0 / 475 MB, free: 81.57 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-05/0.4148, allocations: 9.312 kB / 475 MB, free: 81.57 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007221/0.422, allocations: 4.225 MB / 479.2 MB, free: 80.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.422, allocations: 3.312 kB / 479.2 MB, free: 80.12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001467/0.4235, allocations: 312 kB / 479.5 MB, free: 80.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003529/0.4238, allocations: 97.89 kB / 479.6 MB, free: 80.06 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-05/0.4239, allocations: 30.28 kB / 479.7 MB, free: 80.04 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006106/0.4245, allocations: 1.254 MB / 480.9 MB, free: 78.8 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.4245, allocations: 9.5 kB / 480.9 MB, free: 78.8 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004031/0.4286, allocations: 3.078 MB / 484 MB, free: 77.45 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008173/0.4294, allocations: 369.6 kB / 484.4 MB, free: 77.34 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001944/0.4296, allocations: 27.59 kB / 484.4 MB, free: 77.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009052/0.4305, allocations: 79.25 kB / 484.5 MB, free: 77.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.4307, allocations: 93.53 kB / 484.6 MB, free: 77.29 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.594e-05/0.4307, allocations: 44.39 kB / 484.6 MB, free: 77.28 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001551/0.4323, allocations: 1.166 MB / 485.8 MB, free: 76.84 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4323, allocations: 0 / 485.8 MB, free: 76.84 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00152/0.4338, allocations: 0.5285 MB / 486.3 MB, free: 76.8 MB / 430.1 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 (141): * Single equations (assignments): 138 * 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.0002582/0.4341, allocations: 171.1 kB / 486.5 MB, free: 76.67 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002675/0.4367, allocations: 1.98 MB / 488.4 MB, free: 75.89 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.4367, allocations: 0 / 488.4 MB, free: 75.89 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001162/0.4379, allocations: 0.9546 MB / 489.4 MB, free: 75.46 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001901/0.4398, allocations: 473.8 kB / 489.9 MB, free: 75.32 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006971/0.4468, allocations: 5.669 MB / 495.5 MB, free: 72.62 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001377/0.4482, allocations: 1.71 MB / 497.2 MB, free: 71.36 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00127/0.4494, allocations: 0.5029 MB / 497.7 MB, free: 71 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003593/0.4498, allocations: 146.3 kB / 497.9 MB, free: 70.86 MB / 430.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4498, allocations: 0 / 497.9 MB, free: 70.86 MB / 430.1 MB Notification: Performance of Templates: time 0.0346/0.4844, allocations: 24.91 MB / 0.5105 GB, free: 46.5 MB / 430.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.408590495004319]