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.001848/0.001848, allocations: 70.27 kB / 21.24 MB, free: 0.5547 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.002156/0.002156, allocations: 158 kB / 24.5 MB, free: 3.871 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.398/1.398, allocations: 173.4 MB / 201.1 MB, free: 12.66 MB / 190.1 MB " [Timeout remaining time 179] 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.001594/0.001594, allocations: 43.12 kB / 319.4 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1017, allocations: 52.17 MB / 371.6 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01403/0.1157, allocations: 9.615 MB / 381.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007467/0.1232, allocations: 3.423 MB / 384.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001412/0.1246, allocations: 83.44 kB / 384.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002049/0.1266, allocations: 0.8112 MB / 385.5 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00259/0.1292, allocations: 0.9126 MB / 386.4 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009822/0.1302, allocations: 459.4 kB / 386.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003478/0.1337, allocations: 2.935 MB / 389.8 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002187/0.1359, allocations: 1.498 MB / 391.3 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001916/0.1378, allocations: 1.413 MB / 392.7 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002535/0.1403, allocations: 1.689 MB / 394.4 MB, free: 328 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005545/0.1409, allocations: 372 kB / 394.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009316/0.1418, allocations: 475.8 kB / 395.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001183/0.143, allocations: 1.095 MB / 396.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001634/0.1446, allocations: 1.338 MB / 397.7 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005435/0.1501, allocations: 4.932 MB / 402.6 MB, free: 8.102 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.1501, allocations: 0 / 402.6 MB, free: 8.102 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1501, allocations: 0 / 402.6 MB, free: 8.102 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.46e-05/0.1502, allocations: 0 / 402.6 MB, free: 8.102 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.006855/0.157, allocations: 3.401 MB / 406 MB, free: 4.648 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.238e-05/0.1571, allocations: 8.922 kB / 406 MB, free: 4.641 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008588/0.1579, allocations: 350.8 kB / 406.4 MB, free: 4.297 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003559/0.1615, allocations: 1.756 MB / 408.1 MB, free: 2.504 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000178/0.1617, allocations: 185.4 kB / 408.3 MB, free: 2.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003969/0.1621, allocations: 263.8 kB / 408.6 MB, free: 2.062 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005826/0.1679, allocations: 3.358 MB / 411.9 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-05/0.168, allocations: 11.95 kB / 411.9 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002374/0.1682, allocations: 99.94 kB / 412 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001478/0.1683, allocations: 124.9 kB / 412.2 MB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004961/0.1733, allocations: 2.74 MB / 414.9 MB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01612/0.1894, allocations: 9.047 MB / 423.9 MB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001909/0.1913, allocations: 1.066 MB / 425 MB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001319/0.1927, allocations: 0.707 MB / 425.7 MB, free: 440 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002584/0.1929, allocations: 56.95 kB / 425.8 MB, free: 384 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.097e-05/0.193, allocations: 43.56 kB / 425.8 MB, free: 328 kB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.035e-06/0.193, allocations: 0 / 425.8 MB, free: 328 kB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01623/0.2092, allocations: 6.61 MB / 432.4 MB, free: 9.676 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.2092, allocations: 72.34 kB / 432.5 MB, free: 9.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002475/0.2117, allocations: 1.64 MB / 434.1 MB, free: 7.945 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.765e-05/0.2118, allocations: 49.7 kB / 434.2 MB, free: 7.891 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00112/0.2129, allocations: 1.325 MB / 435.5 MB, free: 6.555 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004124/0.2134, allocations: 448.2 kB / 435.9 MB, free: 6.113 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004899/0.2138, allocations: 299.4 kB / 436.2 MB, free: 5.812 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.214, allocations: 305.1 kB / 436.5 MB, free: 5.512 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001285/0.2153, allocations: 0.7769 MB / 437.3 MB, free: 4.734 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001789/0.2171, allocations: 1.292 MB / 438.6 MB, free: 3.215 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003257/0.2203, allocations: 2.214 MB / 440.8 MB, free: 0.7734 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.488e-06/0.2203, allocations: 4 kB / 440.8 MB, free: 0.7695 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004358/0.2247, allocations: 2.46 MB / 443.3 MB, free: 14.29 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.485e-05/0.2247, allocations: 12.19 kB / 443.3 MB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.314e-05/0.2247, allocations: 20 kB / 443.3 MB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006683/0.2254, allocations: 247.2 kB / 443.6 MB, free: 14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001574/0.227, allocations: 415.3 kB / 444 MB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003033/0.23, allocations: 2.981 MB / 446.9 MB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001302/0.2313, allocations: 128 kB / 447.1 MB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000138/0.2315, allocations: 71.98 kB / 447.1 MB, free: 10.21 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.001372/0.2328, allocations: 0.8134 MB / 448 MB, free: 9.391 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003115/0.2331, allocations: 178.8 kB / 448.1 MB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00362/0.2368, allocations: 2.033 MB / 450.2 MB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/0.2368, allocations: 12 kB / 450.2 MB, free: 7.145 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2368, allocations: 0 / 450.2 MB, free: 7.145 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.502e-05/0.2368, allocations: 7.969 kB / 450.2 MB, free: 7.137 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007426/0.2442, allocations: 4.114 MB / 454.3 MB, free: 2.938 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.2442, allocations: 4 kB / 454.3 MB, free: 2.934 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.2454, allocations: 267.6 kB / 454.6 MB, free: 2.672 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005668/0.246, allocations: 199.3 kB / 454.8 MB, free: 2.465 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.909e-05/0.2461, allocations: 24.28 kB / 454.8 MB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002941/0.249, allocations: 2.958 MB / 457.7 MB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.249, allocations: 7.984 kB / 457.7 MB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005122/0.2541, allocations: 3.131 MB / 460.9 MB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001001/0.2551, allocations: 342.7 kB / 461.2 MB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001964/0.2553, allocations: 27.94 kB / 461.2 MB, free: 11.72 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009382/0.2563, allocations: 95.98 kB / 461.3 MB, free: 11.62 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002248/0.2565, allocations: 88.78 kB / 461.4 MB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.276e-05/0.2566, allocations: 36 kB / 461.5 MB, free: 11.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001737/0.2583, allocations: 1.095 MB / 462.5 MB, free: 10.41 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2583, allocations: 4 kB / 462.6 MB, free: 10.41 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001527/0.2598, allocations: 487.9 kB / 463 MB, free: 9.934 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.0003619/0.2602, allocations: 195 kB / 463.2 MB, free: 9.734 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003728/0.2639, allocations: 2.117 MB / 465.3 MB, free: 7.59 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.2639, allocations: 4 kB / 465.3 MB, free: 7.586 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001943/0.2659, allocations: 1.119 MB / 466.5 MB, free: 6.434 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001933/0.2678, allocations: 431.5 kB / 466.9 MB, free: 6.02 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007837/0.2757, allocations: 4.951 MB / 471.8 MB, free: 1.004 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1636/0.4392, allocations: 1.436 MB / 473.3 MB, free: 89.96 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001468/0.4407, allocations: 488.3 kB / 473.7 MB, free: 89.94 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004002/0.4411, allocations: 136.1 kB / 473.9 MB, free: 89.93 MB / 430.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4411, allocations: 0 / 473.9 MB, free: 89.93 MB / 430.1 MB Notification: Performance of Templates: time 0.03811/0.4792, allocations: 24.93 MB / 498.8 MB, free: 76.66 MB / 430.1 MB " [Timeout remaining time 660] 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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/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: 5.382030184962787]