Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.001619/0.001619, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 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.001931/0.001931, allocations: 169.2 kB / 24.5 MB, free: 3.453 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.461/1.461, allocations: 177.2 MB / 204.9 MB, free: 9.07 MB / 190.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.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_4.1.0_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_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 51.33 kB / 325.6 MB, free: 292 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08744/0.08902, allocations: 53.34 MB / 378.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01807/0.1071, allocations: 13.78 MB / 392.7 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009637/0.1167, allocations: 5.077 MB / 397.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001493/0.1182, allocations: 123.2 kB / 397.9 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002508/0.1207, allocations: 1.068 MB / 399 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002983/0.1237, allocations: 1.27 MB / 400.3 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001903/0.1256, allocations: 0.9083 MB / 401.2 MB, free: 9.371 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004069/0.1297, allocations: 3.651 MB / 404.8 MB, free: 5.707 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002594/0.1323, allocations: 1.839 MB / 406.6 MB, free: 3.797 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002342/0.1346, allocations: 1.795 MB / 408.4 MB, free: 1.996 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002932/0.1376, allocations: 2.004 MB / 410.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006561/0.1382, allocations: 476 kB / 410.9 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00127/0.1395, allocations: 0.6872 MB / 411.6 MB, free: 14.83 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001202/0.1407, allocations: 1.157 MB / 412.8 MB, free: 13.67 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001812/0.1425, allocations: 1.618 MB / 414.4 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006583/0.1491, allocations: 6.341 MB / 420.7 MB, free: 5.684 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1491, allocations: 0 / 420.7 MB, free: 5.684 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1491, allocations: 4 kB / 420.7 MB, free: 5.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.632e-05/0.1492, allocations: 4 kB / 420.7 MB, free: 5.676 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.009339/0.1585, allocations: 4.287 MB / 425 MB, free: 1.328 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.1585, allocations: 12.03 kB / 425 MB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002899/0.1614, allocations: 0.6232 MB / 425.6 MB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004117/0.1655, allocations: 2.214 MB / 427.9 MB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002111/0.1658, allocations: 234.7 kB / 428.1 MB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004688/0.1662, allocations: 316.1 kB / 428.4 MB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006892/0.1731, allocations: 4.13 MB / 432.5 MB, free: 9.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.503e-05/0.1732, allocations: 7.953 kB / 432.5 MB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003056/0.1735, allocations: 128 kB / 432.7 MB, free: 9.551 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001568/0.1737, allocations: 150.2 kB / 432.8 MB, free: 9.402 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005996/0.1797, allocations: 3.382 MB / 436.2 MB, free: 6.012 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01807/0.1977, allocations: 11.31 MB / 447.5 MB, free: 10.3 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003581/0.2013, allocations: 1.745 MB / 449.2 MB, free: 8.59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001638/0.2029, allocations: 0.9299 MB / 450.2 MB, free: 7.664 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004073/0.207, allocations: 2.152 MB / 452.3 MB, free: 5.488 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.796e-05/0.2071, allocations: 47.55 kB / 452.4 MB, free: 5.434 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.786e-06/0.2071, allocations: 0 / 452.4 MB, free: 5.434 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01199/0.2191, allocations: 5.815 MB / 458.2 MB, free: 15.59 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.2191, allocations: 64.72 kB / 458.3 MB, free: 15.51 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002531/0.2217, allocations: 1.752 MB / 460 MB, free: 13.76 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.658e-05/0.2217, allocations: 45.7 kB / 460 MB, free: 13.71 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001298/0.223, allocations: 1.579 MB / 461.6 MB, free: 12.11 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004412/0.2235, allocations: 0.4997 MB / 462.1 MB, free: 11.61 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005409/0.224, allocations: 339.4 kB / 462.5 MB, free: 11.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.2242, allocations: 301.1 kB / 462.8 MB, free: 10.97 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001298/0.2255, allocations: 0.773 MB / 463.5 MB, free: 10.2 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00184/0.2273, allocations: 1.4 MB / 464.9 MB, free: 8.52 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003382/0.2307, allocations: 2.316 MB / 467.2 MB, free: 5.938 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.018e-05/0.2307, allocations: 4 kB / 467.2 MB, free: 5.934 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004162/0.2349, allocations: 2.479 MB / 469.7 MB, free: 3.438 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.58e-05/0.2349, allocations: 12 kB / 469.7 MB, free: 3.426 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.906e-05/0.2349, allocations: 23.98 kB / 469.8 MB, free: 3.402 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000353/0.2353, allocations: 114.5 kB / 469.9 MB, free: 3.281 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001846/0.2371, allocations: 487.6 kB / 470.3 MB, free: 2.805 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001133/0.2382, allocations: 1.276 MB / 471.6 MB, free: 1.426 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001267/0.2395, allocations: 127.9 kB / 471.7 MB, free: 1.301 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001447/0.2397, allocations: 87.94 kB / 471.8 MB, free: 1.215 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.001574/0.2412, allocations: 0.9851 MB / 472.8 MB, free: 224 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003025/0.2415, allocations: 202.6 kB / 473 MB, free: 20 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1732/0.4147, allocations: 1.946 MB / 475 MB, free: 82.64 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/0.4147, allocations: 15.59 kB / 475 MB, free: 82.64 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.4148, allocations: 5.562 kB / 475 MB, free: 82.64 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.597e-05/0.4148, allocations: 7.312 kB / 475 MB, free: 82.64 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006697/0.4215, allocations: 4.23 MB / 479.2 MB, free: 80.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.4215, allocations: 2.281 kB / 479.2 MB, free: 80.95 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001393/0.4229, allocations: 307.5 kB / 479.5 MB, free: 80.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002776/0.4231, allocations: 109.9 kB / 479.6 MB, free: 80.88 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-05/0.4232, allocations: 27.7 kB / 479.7 MB, free: 80.86 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006028/0.4238, allocations: 1.247 MB / 480.9 MB, free: 79.62 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.197e-06/0.4238, allocations: 7.266 kB / 480.9 MB, free: 79.62 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004068/0.4279, allocations: 3.076 MB / 484 MB, free: 78.27 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007985/0.4287, allocations: 371.3 kB / 484.3 MB, free: 78.16 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002121/0.4289, allocations: 31.02 kB / 484.4 MB, free: 78.14 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009414/0.4299, allocations: 78.38 kB / 484.5 MB, free: 78.12 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001707/0.43, allocations: 96.23 kB / 484.5 MB, free: 78.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.68e-05/0.4301, allocations: 38.62 kB / 484.6 MB, free: 78.1 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001562/0.4317, allocations: 1.164 MB / 485.8 MB, free: 77.66 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4317, allocations: 1.5 kB / 485.8 MB, free: 77.66 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001556/0.4332, allocations: 0.5304 MB / 486.3 MB, free: 77.61 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.0002659/0.4335, allocations: 172 kB / 486.5 MB, free: 77.49 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002732/0.4362, allocations: 1.976 MB / 488.4 MB, free: 76.7 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.4362, allocations: 3.969 kB / 488.4 MB, free: 76.7 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001171/0.4374, allocations: 0.9511 MB / 489.4 MB, free: 76.28 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001844/0.4392, allocations: 470.1 kB / 489.8 MB, free: 76.14 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006749/0.446, allocations: 5.664 MB / 495.5 MB, free: 73.41 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001346/0.4473, allocations: 1.714 MB / 497.2 MB, free: 72.13 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001143/0.4485, allocations: 0.4961 MB / 497.7 MB, free: 71.78 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003727/0.4489, allocations: 148.1 kB / 497.9 MB, free: 71.64 MB / 430.1 MB Notification: Performance of SimCode: time 7.22e-07/0.4489, allocations: 4 kB / 497.9 MB, free: 71.64 MB / 430.1 MB Notification: Performance of Templates: time 0.03525/0.4841, allocations: 24.92 MB / 0.5105 GB, free: 47.24 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.476680118008517]