Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smee.is.1.|smee.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smee.is.1.|smee.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 101.4 kB / 16.94 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 184.8 kB / 17.83 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.436/1.436, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004205/0.0004205, allocations: 8 kB / 280.7 MB, free: 3.766 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1013, allocations: 47.6 MB / 328.3 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01221/0.1136, allocations: 8.849 MB / 337.2 MB, free: 11.22 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01183/0.1255, allocations: 3.548 MB / 340.7 MB, free: 7.656 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003507/0.1291, allocations: 55.69 kB / 340.8 MB, free: 7.602 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002845/0.132, allocations: 0.6841 MB / 341.5 MB, free: 6.914 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004224/0.1362, allocations: 0.7789 MB / 342.2 MB, free: 6.133 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001458/0.1377, allocations: 303.5 kB / 342.5 MB, free: 5.836 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00403/0.1418, allocations: 1.919 MB / 344.5 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002239/0.144, allocations: 1.816 MB / 346.3 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001663/0.1457, allocations: 0.9379 MB / 347.2 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001725/0.1474, allocations: 1.249 MB / 348.5 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003052/0.1478, allocations: 148 kB / 348.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006337/0.1484, allocations: 223.9 kB / 348.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007618/0.1492, allocations: 0.7634 MB / 349.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006143/0.1498, allocations: 0.5704 MB / 350.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003665/0.1535, allocations: 3.872 MB / 354 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.1535, allocations: 0 / 354 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1535, allocations: 0 / 354 MB, free: 10.28 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001395/0.1536, allocations: 0 / 354 MB, free: 10.28 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.005769/0.1594, allocations: 2.853 MB / 356.9 MB, free: 7.359 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.1595, allocations: 12.02 kB / 356.9 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007767/0.1603, allocations: 340.1 kB / 357.2 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00275/0.163, allocations: 1.662 MB / 358.9 MB, free: 5.293 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001619/0.1632, allocations: 193 kB / 359.1 MB, free: 5.102 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003301/0.1635, allocations: 248 kB / 359.3 MB, free: 4.859 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004859/0.1684, allocations: 3.24 MB / 362.6 MB, free: 1.539 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.38e-05/0.1685, allocations: 11.89 kB / 362.6 MB, free: 1.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002178/0.1687, allocations: 104 kB / 362.7 MB, free: 1.426 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001229/0.1688, allocations: 128.8 kB / 362.8 MB, free: 1.297 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004362/0.1732, allocations: 2.729 MB / 365.5 MB, free: 14.55 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01658/0.1898, allocations: 10.5 MB / 376 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002112/0.192, allocations: 1.354 MB / 377.4 MB, free: 2.277 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002867/0.1923, allocations: 204.2 kB / 377.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.551e-05/0.1923, allocations: 43.56 kB / 377.6 MB, free: 1.992 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.717e-06/0.1924, allocations: 8 kB / 377.6 MB, free: 1.984 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.2395/0.4319, allocations: 7.07 MB / 384.7 MB, free: 49.01 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.563e-05/0.432, allocations: 65.78 kB / 384.8 MB, free: 48.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003399/0.4354, allocations: 1.722 MB / 386.5 MB, free: 48.31 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001875/0.4356, allocations: 41.8 kB / 386.5 MB, free: 48.27 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009737/0.4366, allocations: 1.276 MB / 387.8 MB, free: 47.29 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003948/0.437, allocations: 427.4 kB / 388.2 MB, free: 46.97 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.802e-05/0.4371, allocations: 30.16 kB / 388.3 MB, free: 46.95 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.4372, allocations: 375.2 kB / 388.6 MB, free: 46.61 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001443/0.4387, allocations: 0.7688 MB / 389.4 MB, free: 46.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001551/0.4402, allocations: 1.295 MB / 390.7 MB, free: 45.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/0.4417, allocations: 0.9868 MB / 391.7 MB, free: 45.02 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.4417, allocations: 1.219 kB / 391.7 MB, free: 45.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003854/0.4456, allocations: 2.474 MB / 394.1 MB, free: 44.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.4456, allocations: 12.38 kB / 394.2 MB, free: 44.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.805e-05/0.4456, allocations: 16.5 kB / 394.2 MB, free: 44.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005918/0.4462, allocations: 247.1 kB / 394.4 MB, free: 43.94 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001513/0.4478, allocations: 424.9 kB / 394.8 MB, free: 43.9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002763/0.4505, allocations: 3.03 MB / 397.9 MB, free: 41.13 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001674/0.4522, allocations: 130.5 kB / 398 MB, free: 41.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.4524, allocations: 74.22 kB / 398.1 MB, free: 41.09 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001558/0.4539, allocations: 0.8228 MB / 398.9 MB, free: 40.63 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003996/0.4543, allocations: 187.4 kB / 399.1 MB, free: 40.54 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003022/0.4574, allocations: 2.036 MB / 401.1 MB, free: 39.71 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-05/0.4574, allocations: 12.84 kB / 401.1 MB, free: 39.71 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.4574, allocations: 4.734 kB / 401.1 MB, free: 39.71 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.4574, allocations: 7.359 kB / 401.1 MB, free: 39.71 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006847/0.4643, allocations: 4.724 MB / 405.9 MB, free: 36.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.4643, allocations: 0 / 405.9 MB, free: 36.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009949/0.4653, allocations: 267.6 kB / 406.1 MB, free: 36.03 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004676/0.4658, allocations: 207.5 kB / 406.3 MB, free: 35.82 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.09e-05/0.4659, allocations: 24 kB / 406.3 MB, free: 35.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001787/0.4677, allocations: 3.022 MB / 409.4 MB, free: 32.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.4677, allocations: 3.953 kB / 409.4 MB, free: 32.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003923/0.4716, allocations: 3.273 MB / 412.6 MB, free: 29.12 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001108/0.4728, allocations: 430.6 kB / 413.1 MB, free: 28.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002339/0.473, allocations: 24 kB / 413.1 MB, free: 28.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008621/0.4739, allocations: 95.86 kB / 413.2 MB, free: 28.57 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.474, allocations: 88.89 kB / 413.3 MB, free: 28.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.728e-05/0.4741, allocations: 34.88 kB / 413.3 MB, free: 28.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001603/0.4757, allocations: 1.165 MB / 414.5 MB, free: 27.29 MB / 318.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4757, allocations: 0 / 414.5 MB, free: 27.29 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001793/0.4775, allocations: 482.9 kB / 414.9 MB, free: 26.82 MB / 318.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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003184/0.4778, allocations: 166 kB / 415.1 MB, free: 26.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003081/0.4809, allocations: 2.344 MB / 417.4 MB, free: 24.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.481, allocations: 0 / 417.4 MB, free: 24.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001436/0.4824, allocations: 1.343 MB / 418.8 MB, free: 22.84 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002207/0.4846, allocations: 452.8 kB / 419.2 MB, free: 22.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008733/0.4934, allocations: 5.805 MB / 425 MB, free: 16.55 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001544/0.495, allocations: 2.061 MB / 427.1 MB, free: 14.45 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00182/0.4968, allocations: 0.4921 MB / 427.6 MB, free: 13.95 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003754/0.4972, allocations: 139.4 kB / 427.7 MB, free: 13.82 MB / 318.1 MB Notification: Performance of SimCode: time 1.643e-06/0.4972, allocations: 0 / 427.7 MB, free: 13.82 MB / 318.1 MB Notification: Performance of Templates: time 0.04234/0.5396, allocations: 23.13 MB / 450.9 MB, free: 6.668 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches