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.001149/0.001149, allocations: 109.2 kB / 17.93 MB, free: 5.547 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.001274/0.001275, allocations: 197.3 kB / 18.86 MB, free: 4.625 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.335/1.335, allocations: 205.1 MB / 224.7 MB, free: 12.44 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.001526/0.001526, allocations: 56.2 kB / 280.8 MB, free: 3.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08407/0.08561, allocations: 46.63 MB / 327.4 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01233/0.09798, allocations: 10.79 MB / 338.2 MB, free: 9.934 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007183/0.1052, allocations: 3.619 MB / 341.9 MB, free: 6.297 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00198/0.1072, allocations: 51.75 kB / 341.9 MB, free: 6.246 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002458/0.1098, allocations: 0.7263 MB / 342.6 MB, free: 5.516 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003089/0.1129, allocations: 0.7771 MB / 343.4 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001265/0.1142, allocations: 407.6 kB / 343.8 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003634/0.1178, allocations: 2.943 MB / 346.7 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003623/0.1215, allocations: 2.675 MB / 349.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002185/0.1237, allocations: 1.374 MB / 350.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002786/0.1265, allocations: 1.783 MB / 352.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001116/0.1276, allocations: 372 kB / 352.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001415/0.129, allocations: 475.8 kB / 353.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001201/0.1302, allocations: 1.083 MB / 354.5 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001803/0.1321, allocations: 1.668 MB / 356.2 MB, free: 7.887 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003502/0.1356, allocations: 4.065 MB / 360.2 MB, free: 3.812 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1356, allocations: 0 / 360.2 MB, free: 3.812 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1356, allocations: 0 / 360.2 MB, free: 3.812 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001132/0.1357, allocations: 0 / 360.2 MB, free: 3.812 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.006104/0.1418, allocations: 3.382 MB / 363.6 MB, free: 372 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.1419, allocations: 11.97 kB / 363.6 MB, free: 360 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007168/0.1426, allocations: 341.1 kB / 364 MB, free: 16 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002347/0.145, allocations: 1.694 MB / 365.6 MB, free: 14.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001526/0.1451, allocations: 193.3 kB / 365.8 MB, free: 14.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003337/0.1455, allocations: 255.8 kB / 366.1 MB, free: 13.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004942/0.1504, allocations: 3.279 MB / 369.4 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.4e-05/0.1505, allocations: 4 kB / 369.4 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002111/0.1507, allocations: 100 kB / 369.5 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001322/0.1509, allocations: 124.9 kB / 369.6 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004174/0.155, allocations: 2.748 MB / 372.3 MB, free: 7.477 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1783/0.3334, allocations: 10.51 MB / 382.8 MB, free: 46.63 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002198/0.3356, allocations: 1.353 MB / 384.2 MB, free: 46.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001371/0.337, allocations: 0.7796 MB / 385 MB, free: 46.29 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002946/0.3374, allocations: 202.6 kB / 385.2 MB, free: 46.11 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.365e-05/0.3374, allocations: 48.42 kB / 385.2 MB, free: 46.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.236e-06/0.3374, allocations: 0 / 385.2 MB, free: 46.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01693/0.3544, allocations: 7.041 MB / 392.3 MB, free: 43.7 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.905e-05/0.3544, allocations: 67.34 kB / 392.3 MB, free: 43.63 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003399/0.3578, allocations: 1.787 MB / 394.1 MB, free: 42.97 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000104/0.358, allocations: 50.62 kB / 394.2 MB, free: 42.92 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008513/0.3588, allocations: 1.282 MB / 395.4 MB, free: 41.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003365/0.3592, allocations: 423.2 kB / 395.9 MB, free: 41.61 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004987/0.3597, allocations: 294.1 kB / 396.1 MB, free: 41.47 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.429e-05/0.3597, allocations: 305.1 kB / 396.4 MB, free: 41.17 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.3609, allocations: 0.7713 MB / 397.2 MB, free: 40.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001227/0.3621, allocations: 1.296 MB / 398.5 MB, free: 39.97 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002387/0.3645, allocations: 2.215 MB / 400.7 MB, free: 38.44 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.917e-05/0.3645, allocations: 4.312 kB / 400.7 MB, free: 38.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003602/0.3681, allocations: 2.482 MB / 403.2 MB, free: 37.17 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.964e-05/0.3682, allocations: 12.59 kB / 403.2 MB, free: 37.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.557e-05/0.3682, allocations: 15.25 kB / 403.2 MB, free: 37.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006/0.3688, allocations: 242.6 kB / 403.5 MB, free: 37.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/0.3702, allocations: 418.6 kB / 403.9 MB, free: 36.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002179/0.3724, allocations: 3.242 MB / 407.1 MB, free: 33.81 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001569/0.3739, allocations: 134.9 kB / 407.3 MB, free: 33.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/0.3741, allocations: 69.84 kB / 407.3 MB, free: 33.73 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 (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.001358/0.3755, allocations: 0.8258 MB / 408.2 MB, free: 33.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005158/0.376, allocations: 183.6 kB / 408.3 MB, free: 33.08 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003047/0.379, allocations: 2.03 MB / 410.4 MB, free: 31.3 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.379, allocations: 12 kB / 410.4 MB, free: 31.29 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.3791, allocations: 3.938 kB / 410.4 MB, free: 31.28 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.3791, allocations: 11.97 kB / 410.4 MB, free: 31.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007411/0.3865, allocations: 4.751 MB / 415.1 MB, free: 26.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.3865, allocations: 4 kB / 415.1 MB, free: 26.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000998/0.3875, allocations: 263.6 kB / 415.4 MB, free: 26.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004777/0.388, allocations: 207.4 kB / 415.6 MB, free: 25.97 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.469e-05/0.3881, allocations: 27.98 kB / 415.6 MB, free: 25.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001792/0.3899, allocations: 3.219 MB / 418.9 MB, free: 22.46 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.39, allocations: 4 kB / 418.9 MB, free: 22.45 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003724/0.3937, allocations: 3.122 MB / 422 MB, free: 19.27 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008735/0.3946, allocations: 430.5 kB / 422.4 MB, free: 18.83 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004786/0.3951, allocations: 27.98 kB / 422.4 MB, free: 18.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.3962, allocations: 91.88 kB / 422.5 MB, free: 18.71 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/0.3964, allocations: 80.83 kB / 422.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.375e-05/0.3965, allocations: 36.06 kB / 422.6 MB, free: 18.6 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001788/0.3982, allocations: 1.227 MB / 423.9 MB, free: 17.39 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3983, allocations: 0 / 423.9 MB, free: 17.39 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00175/0.4, allocations: 487.8 kB / 424.3 MB, free: 16.91 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 (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.0003701/0.4004, allocations: 192.6 kB / 424.5 MB, free: 16.72 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004499/0.4049, allocations: 2.983 MB / 427.5 MB, free: 13.69 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.4049, allocations: 0 / 427.5 MB, free: 13.69 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.4064, allocations: 1.335 MB / 428.8 MB, free: 12.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002753/0.4092, allocations: 490.5 kB / 429.3 MB, free: 11.83 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00825/0.4175, allocations: 6.088 MB / 435.4 MB, free: 5.688 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001705/0.4192, allocations: 1.974 MB / 437.4 MB, free: 3.684 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006849/0.4199, allocations: 155.3 kB / 437.5 MB, free: 3.531 MB / 318.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4199, allocations: 1.859 kB / 437.5 MB, free: 3.531 MB / 318.1 MB Notification: Performance of Templates: time 0.09062/0.5106, allocations: 82.58 MB / 0.5079 GB, free: 0.7891 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile (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) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches