Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00665/0.00665, allocations: 183.5 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.61/3.61, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00175/0.00175, allocations: 101.5 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006397/0.0006402, allocations: 8 kB / 327 MB, free: 220 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6352/0.6359, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.05343/0.6894, allocations: 8.841 MB / 383.4 MB, free: 38.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01531/0.7048, allocations: 3.548 MB / 386.9 MB, free: 35.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00349/0.7084, allocations: 51.44 kB / 387 MB, free: 35.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004535/0.713, allocations: 0.6854 MB / 387.7 MB, free: 35.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007399/0.7205, allocations: 0.7733 MB / 388.4 MB, free: 34.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003526/0.7241, allocations: 303 kB / 388.7 MB, free: 34.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007869/0.732, allocations: 1.933 MB / 390.7 MB, free: 32.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007599/0.7397, allocations: 1.812 MB / 392.5 MB, free: 30.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003779/0.7435, allocations: 0.934 MB / 393.4 MB, free: 29.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004582/0.7482, allocations: 1.249 MB / 394.7 MB, free: 28.67 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00137/0.7496, allocations: 152 kB / 394.8 MB, free: 28.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003789/0.7535, allocations: 223.8 kB / 395 MB, free: 28.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002201/0.7558, allocations: 0.7712 MB / 395.8 MB, free: 27.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001922/0.7578, allocations: 0.5704 MB / 396.4 MB, free: 26.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009922/0.7677, allocations: 3.869 MB / 400.2 MB, free: 23.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.7678, allocations: 3.938 kB / 400.2 MB, free: 23.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.376e-06/0.7678, allocations: 0 / 400.2 MB, free: 23.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002026/0.768, allocations: 0 / 400.2 MB, free: 23.07 MB / 298.7 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.01595/0.784, allocations: 2.857 MB / 403.1 MB, free: 20.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001124/0.7842, allocations: 16.03 kB / 403.1 MB, free: 20.13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003049/0.7873, allocations: 340.1 kB / 403.4 MB, free: 19.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009187/0.7965, allocations: 1.655 MB / 405.1 MB, free: 18.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004331/0.797, allocations: 193 kB / 405.3 MB, free: 17.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001324/0.7984, allocations: 251.9 kB / 405.5 MB, free: 17.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01453/0.8129, allocations: 3.244 MB / 408.8 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002032/0.8132, allocations: 7.906 kB / 408.8 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001039/0.8143, allocations: 103.9 kB / 408.9 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002726/0.8146, allocations: 132.9 kB / 409 MB, free: 14.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01244/0.827, allocations: 2.729 MB / 411.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03662/0.8637, allocations: 10.49 MB / 422.2 MB, free: 500 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004681/0.8685, allocations: 1.35 MB / 423.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006497/0.8692, allocations: 211.2 kB / 423.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.141e-05/0.8693, allocations: 43.56 kB / 423.8 MB, free: 14.79 MB / 314.7 MB Notification: Performance of pre-optimization done (n=97): time 5.3e-06/0.8693, allocations: 0 / 423.8 MB, free: 14.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=122): time 0.04097/0.9103, allocations: 7.088 MB / 430.9 MB, free: 7.582 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.834e-05/0.9105, allocations: 64.41 kB / 431 MB, free: 7.508 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006444/0.9169, allocations: 1.723 MB / 432.7 MB, free: 5.785 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004072/0.9174, allocations: 45.7 kB / 432.8 MB, free: 5.734 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001975/0.9194, allocations: 1.209 MB / 434 MB, free: 4.512 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009836/0.9205, allocations: 429.9 kB / 434.4 MB, free: 4.086 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002416/0.9207, allocations: 36 kB / 434.4 MB, free: 4.051 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003321/0.9211, allocations: 370.8 kB / 434.8 MB, free: 3.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003391/0.9245, allocations: 0.7691 MB / 435.5 MB, free: 2.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004167/0.9288, allocations: 1.293 MB / 436.8 MB, free: 1.387 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004076/0.9329, allocations: 0.9823 MB / 437.8 MB, free: 416 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.385e-05/0.933, allocations: 4 kB / 437.8 MB, free: 412 kB / 314.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.01074/0.9437, allocations: 2.355 MB / 440.2 MB, free: 14.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.79e-05/0.9439, allocations: 12 kB / 440.2 MB, free: 14.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.798e-05/0.944, allocations: 20 kB / 440.2 MB, free: 13.99 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001593/0.9456, allocations: 239.2 kB / 440.4 MB, free: 13.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004533/0.9502, allocations: 427.4 kB / 440.9 MB, free: 13.33 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006546/0.9568, allocations: 3.049 MB / 443.9 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003969/0.9608, allocations: 135.8 kB / 444 MB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006095/0.9615, allocations: 68 kB / 444.1 MB, free: 9.801 MB / 330.7 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.004081/0.9656, allocations: 0.8134 MB / 444.9 MB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001063/0.9667, allocations: 185.8 kB / 445.1 MB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009827/0.9766, allocations: 2.046 MB / 447.2 MB, free: 6.727 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.689e-05/0.9767, allocations: 12 kB / 447.2 MB, free: 6.715 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.755e-05/0.9767, allocations: 7.953 kB / 447.2 MB, free: 6.707 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.351e-05/0.9768, allocations: 3.984 kB / 447.2 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02373/1.001, allocations: 4.716 MB / 451.9 MB, free: 1.883 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.667e-05/1.001, allocations: 0 / 451.9 MB, free: 1.883 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003563/1.004, allocations: 263.6 kB / 452.2 MB, free: 1.625 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001639/1.006, allocations: 211.4 kB / 452.4 MB, free: 1.406 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003831/1.006, allocations: 31.94 kB / 452.4 MB, free: 1.375 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006373/1.013, allocations: 3.006 MB / 455.4 MB, free: 14.11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.044e-06/1.013, allocations: 4.125 kB / 455.4 MB, free: 14.1 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0141/1.027, allocations: 3.273 MB / 458.7 MB, free: 10.72 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002587/1.03, allocations: 426.7 kB / 459.1 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001035/1.031, allocations: 27.98 kB / 459.1 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003246/1.034, allocations: 95.94 kB / 459.2 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006613/1.035, allocations: 88.78 kB / 459.3 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002375/1.035, allocations: 32 kB / 459.3 MB, free: 10.04 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00562/1.041, allocations: 1.165 MB / 460.5 MB, free: 8.887 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.634e-06/1.041, allocations: 4 kB / 460.5 MB, free: 8.883 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004604/1.046, allocations: 488 kB / 461 MB, free: 8.406 MB / 346.7 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.0008794/1.046, allocations: 153 kB / 461.1 MB, free: 8.246 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01005/1.057, allocations: 2.346 MB / 463.5 MB, free: 5.832 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.677e-05/1.057, allocations: 448 / 463.5 MB, free: 5.832 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005576/1.062, allocations: 1.343 MB / 464.8 MB, free: 4.422 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005719/1.068, allocations: 457.7 kB / 465.3 MB, free: 3.984 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02233/1.09, allocations: 5.864 MB / 471.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005475/1.096, allocations: 2.024 MB / 473.1 MB, free: 12 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001641/1.098, allocations: 147.4 kB / 473.3 MB, free: 11.85 MB / 362.7 MB Notification: Performance of SimCode: time 2.555e-06/1.098, allocations: 0 / 473.3 MB, free: 11.85 MB / 362.7 MB Notification: Performance of Templates: time 0.6104/1.708, allocations: 77.75 MB / 0.5381 GB, free: 64.21 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches