Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.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.001637/0.001637, allocations: 108.2 kB / 21.19 MB, free: 0.6094 MB / 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.001871/0.001871, allocations: 216.4 kB / 24.5 MB, free: 3.953 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.431/1.431, allocations: 230.6 MB / 258.3 MB, free: 7.984 MB / 206.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.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.1.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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 51.92 kB / 379 MB, free: 2.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2229/0.2244, allocations: 53.37 MB / 432.4 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01346/0.2379, allocations: 11.05 MB / 443.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006886/0.2448, allocations: 3.692 MB / 447.2 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001305/0.2461, allocations: 91.38 kB / 447.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002047/0.2481, allocations: 0.8775 MB / 448.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002584/0.2507, allocations: 0.9165 MB / 449 MB, free: 6.234 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.2518, allocations: 475.2 kB / 449.5 MB, free: 5.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00363/0.2554, allocations: 2.952 MB / 452.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00224/0.2576, allocations: 1.564 MB / 454 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00195/0.2596, allocations: 1.417 MB / 455.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00267/0.2623, allocations: 1.802 MB / 457.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005446/0.2628, allocations: 379.9 kB / 457.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009138/0.2637, allocations: 479.8 kB / 458.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001148/0.2649, allocations: 1.095 MB / 459.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001854/0.2667, allocations: 1.68 MB / 460.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006144/0.2729, allocations: 4.906 MB / 465.8 MB, free: 5.402 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.2729, allocations: 0 / 465.8 MB, free: 5.402 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2729, allocations: 0 / 465.8 MB, free: 5.402 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.915e-05/0.273, allocations: 0 / 465.8 MB, free: 5.402 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.006871/0.2798, allocations: 3.409 MB / 469.2 MB, free: 1.941 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.2799, allocations: 12.03 kB / 469.2 MB, free: 1.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000941/0.2808, allocations: 366.8 kB / 469.5 MB, free: 1.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003508/0.2843, allocations: 1.756 MB / 471.3 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000168/0.2845, allocations: 189.3 kB / 471.5 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003833/0.2849, allocations: 251.9 kB / 471.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005456/0.2903, allocations: 3.283 MB / 475 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.436e-05/0.2904, allocations: 4 kB / 475 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000241/0.2906, allocations: 104 kB / 475.1 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001552/0.2908, allocations: 128.9 kB / 475.2 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004799/0.2956, allocations: 2.744 MB / 478 MB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01648/0.3121, allocations: 10.22 MB / 488.2 MB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001833/0.3139, allocations: 1.071 MB / 489.3 MB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001216/0.3151, allocations: 0.7034 MB / 490 MB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002369/0.3154, allocations: 56.95 kB / 490 MB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.086e-05/0.3154, allocations: 43.56 kB / 490.1 MB, free: 12.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.106e-06/0.3154, allocations: 0 / 490.1 MB, free: 12.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01507/0.3305, allocations: 6.64 MB / 496.7 MB, free: 5.824 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.3305, allocations: 64.41 kB / 496.8 MB, free: 5.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002687/0.3332, allocations: 1.794 MB / 498.6 MB, free: 3.957 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.3333, allocations: 45.7 kB / 498.6 MB, free: 3.906 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001044/0.3344, allocations: 1.31 MB / 499.9 MB, free: 2.582 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000409/0.3348, allocations: 456.1 kB / 0.4887 GB, free: 2.133 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004581/0.3352, allocations: 295.5 kB / 0.4889 GB, free: 1.836 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.3354, allocations: 309 kB / 0.4892 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.3366, allocations: 0.7769 MB / 0.49 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001668/0.3383, allocations: 1.288 MB / 0.4912 GB, free: 15.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003072/0.3413, allocations: 2.214 MB / 0.4934 GB, free: 12.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.3414, allocations: 4 kB / 0.4934 GB, free: 12.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004161/0.3455, allocations: 2.487 MB / 0.4958 GB, free: 10.28 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/0.3455, allocations: 12 kB / 0.4959 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.102e-05/0.3456, allocations: 16.53 kB / 0.4959 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006312/0.3462, allocations: 239.2 kB / 0.4961 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00149/0.3477, allocations: 419.3 kB / 0.4965 GB, free: 9.598 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002936/0.3506, allocations: 3.039 MB / 0.4995 GB, free: 6.328 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.352, allocations: 131.8 kB / 0.4996 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/0.3521, allocations: 71.94 kB / 0.4997 GB, free: 6.129 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.001346/0.3534, allocations: 0.8267 MB / 0.5005 GB, free: 5.293 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003404/0.3538, allocations: 194.7 kB / 0.5007 GB, free: 5.102 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003464/0.3572, allocations: 2.035 MB / 0.5026 GB, free: 3.043 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.339e-05/0.3572, allocations: 16 kB / 0.5027 GB, free: 3.027 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.3572, allocations: 0 / 0.5027 GB, free: 3.027 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/0.3573, allocations: 7.969 kB / 0.5027 GB, free: 3.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008115/0.3654, allocations: 4.701 MB / 0.5073 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.3654, allocations: 4 kB / 0.5073 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/0.3665, allocations: 259.6 kB / 0.5075 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005397/0.367, allocations: 215.5 kB / 0.5077 GB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.566e-05/0.3671, allocations: 23.98 kB / 0.5077 GB, free: 13.72 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002837/0.3699, allocations: 3.011 MB / 0.5107 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.3699, allocations: 0 / 0.5107 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004822/0.3747, allocations: 3.144 MB / 0.5137 GB, free: 7.277 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009552/0.3757, allocations: 366.6 kB / 0.5141 GB, free: 6.918 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002297/0.3759, allocations: 27.94 kB / 0.5141 GB, free: 6.891 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009205/0.3769, allocations: 91.94 kB / 0.5142 GB, free: 6.801 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.377, allocations: 88.77 kB / 0.5143 GB, free: 6.715 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.643e-05/0.3771, allocations: 32 kB / 0.5143 GB, free: 6.684 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00188/0.379, allocations: 1.228 MB / 0.5155 GB, free: 5.465 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.379, allocations: 0 / 0.5155 GB, free: 5.465 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001461/0.3804, allocations: 487.9 kB / 0.516 GB, free: 4.988 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.0003698/0.3808, allocations: 194.9 kB / 0.5162 GB, free: 4.789 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003605/0.3844, allocations: 2.121 MB / 0.5182 GB, free: 2.641 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3844, allocations: 0.875 kB / 0.5182 GB, free: 2.641 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001844/0.3863, allocations: 1.121 MB / 0.5193 GB, free: 1.484 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002055/0.3883, allocations: 0.5007 MB / 0.5198 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008103/0.3964, allocations: 5.022 MB / 0.5247 GB, free: 11.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001839/0.3983, allocations: 1.974 MB / 0.5267 GB, free: 9.895 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005975/0.3989, allocations: 151.3 kB / 0.5268 GB, free: 9.746 MB / 446.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3989, allocations: 4 kB / 0.5268 GB, free: 9.742 MB / 446.1 MB Notification: Performance of Templates: time 0.2492/0.6481, allocations: 83.25 MB / 0.6081 GB, free: 35.04 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 12.51341367000714]