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.001078/0.001078, allocations: 96.39 kB / 17.3 MB, free: 6.391 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.001302/0.001302, allocations: 177.5 kB / 18.21 MB, free: 5.551 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.621/1.621, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0005025/0.0005026, allocations: 12 kB / 281.4 MB, free: 3.434 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1228, allocations: 47.59 MB / 329 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01527/0.1381, allocations: 10.23 MB / 339.2 MB, free: 9.492 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01195/0.1501, allocations: 3.592 MB / 342.8 MB, free: 5.883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003538/0.1537, allocations: 55.69 kB / 342.8 MB, free: 5.828 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003652/0.1574, allocations: 0.7147 MB / 343.6 MB, free: 5.109 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005056/0.1625, allocations: 0.7809 MB / 344.3 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002125/0.1647, allocations: 407.6 kB / 344.7 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007488/0.1722, allocations: 3.266 MB / 348 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006493/0.1787, allocations: 2.224 MB / 350.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003177/0.1819, allocations: 1.031 MB / 351.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004433/0.1864, allocations: 1.459 MB / 352.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001443/0.1879, allocations: 156 kB / 352.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002364/0.1903, allocations: 271.8 kB / 353.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002256/0.1926, allocations: 0.8136 MB / 354 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005169/0.1978, allocations: 1.4 MB / 355.4 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009195/0.207, allocations: 4.554 MB / 359.9 MB, free: 4.645 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.201e-05/0.2071, allocations: 0 / 359.9 MB, free: 4.645 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.801e-06/0.2071, allocations: 0 / 359.9 MB, free: 4.645 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003714/0.2075, allocations: 4 kB / 359.9 MB, free: 4.641 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.01104/0.2186, allocations: 2.849 MB / 362.8 MB, free: 1.727 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.07e-05/0.2187, allocations: 8.031 kB / 362.8 MB, free: 1.719 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002446/0.2211, allocations: 345.1 kB / 363.1 MB, free: 1.379 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005816/0.227, allocations: 1.686 MB / 364.8 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003084/0.2273, allocations: 205.3 kB / 365 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001261/0.2286, allocations: 251.9 kB / 365.2 MB, free: 15.19 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007562/0.2362, allocations: 3.272 MB / 368.5 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.101e-05/0.2363, allocations: 19.84 kB / 368.5 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002452/0.2365, allocations: 107.9 kB / 368.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001471/0.2367, allocations: 124.9 kB / 368.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004928/0.2416, allocations: 2.748 MB / 371.5 MB, free: 8.824 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2912/0.5329, allocations: 10.55 MB / 382 MB, free: 46.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003596/0.5366, allocations: 1.365 MB / 383.4 MB, free: 46.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001695/0.5383, allocations: 0.7817 MB / 384.2 MB, free: 46.42 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003986/0.5387, allocations: 202.8 kB / 384.4 MB, free: 46.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.896e-05/0.5388, allocations: 52.12 kB / 384.4 MB, free: 46.19 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 4.038e-06/0.5388, allocations: 0.875 kB / 384.4 MB, free: 46.19 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01938/0.5582, allocations: 7.071 MB / 391.5 MB, free: 44.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/0.5583, allocations: 72.16 kB / 391.6 MB, free: 44.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002948/0.5612, allocations: 1.79 MB / 393.4 MB, free: 43.6 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001013/0.5613, allocations: 45.83 kB / 393.4 MB, free: 43.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008715/0.5622, allocations: 1.277 MB / 394.7 MB, free: 42.57 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003451/0.5626, allocations: 428.3 kB / 395.1 MB, free: 42.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002146/0.5628, allocations: 124.4 kB / 395.2 MB, free: 42.19 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.995e-05/0.5629, allocations: 306.3 kB / 395.5 MB, free: 41.89 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001228/0.5641, allocations: 0.7748 MB / 396.3 MB, free: 41.62 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001404/0.5655, allocations: 1.296 MB / 397.6 MB, free: 40.69 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002343/0.5679, allocations: 2.228 MB / 399.8 MB, free: 39.3 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.826e-06/0.5679, allocations: 7.844 kB / 399.8 MB, free: 39.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003725/0.5716, allocations: 2.476 MB / 402.3 MB, free: 38.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.997e-05/0.5717, allocations: 12.41 kB / 402.3 MB, free: 38.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.282e-05/0.5717, allocations: 23.12 kB / 402.4 MB, free: 38.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005869/0.5723, allocations: 234.8 kB / 402.6 MB, free: 37.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001319/0.5736, allocations: 420.8 kB / 403 MB, free: 37.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002076/0.5757, allocations: 3.001 MB / 406 MB, free: 34.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001762/0.5775, allocations: 129.9 kB / 406.1 MB, free: 34.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/0.5776, allocations: 71.52 kB / 406.2 MB, free: 34.86 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.001678/0.5793, allocations: 0.8276 MB / 407 MB, free: 34.31 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004062/0.5797, allocations: 187.1 kB / 407.2 MB, free: 34.15 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002878/0.5826, allocations: 2.031 MB / 409.2 MB, free: 32.1 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.5826, allocations: 15.94 kB / 409.2 MB, free: 32.08 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.5826, allocations: 4.875 kB / 409.3 MB, free: 32.08 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.5826, allocations: 3.984 kB / 409.3 MB, free: 32.07 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006868/0.5895, allocations: 4.757 MB / 414 MB, free: 27.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.5895, allocations: 12.11 kB / 414 MB, free: 27.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009547/0.5905, allocations: 267.5 kB / 414.3 MB, free: 26.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004753/0.591, allocations: 203.2 kB / 414.5 MB, free: 26.77 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.77e-05/0.5911, allocations: 24 kB / 414.5 MB, free: 26.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00187/0.5929, allocations: 2.974 MB / 417.5 MB, free: 23.51 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.207e-06/0.593, allocations: 7.969 kB / 417.5 MB, free: 23.5 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004002/0.597, allocations: 3.134 MB / 420.6 MB, free: 20.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.598, allocations: 430.7 kB / 421 MB, free: 19.88 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002086/0.5982, allocations: 24 kB / 421.1 MB, free: 19.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009028/0.5991, allocations: 99.94 kB / 421.2 MB, free: 19.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/0.5993, allocations: 76.83 kB / 421.2 MB, free: 19.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.017e-05/0.5994, allocations: 35.98 kB / 421.3 MB, free: 19.64 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001755/0.6011, allocations: 1.228 MB / 422.5 MB, free: 18.43 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6011, allocations: 0 / 422.5 MB, free: 18.43 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00174/0.6029, allocations: 486.6 kB / 423 MB, free: 17.95 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.0003825/0.6033, allocations: 192.3 kB / 423.2 MB, free: 17.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003267/0.6066, allocations: 2.352 MB / 425.5 MB, free: 15.35 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.6066, allocations: 0 / 425.5 MB, free: 15.35 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001516/0.6081, allocations: 1.335 MB / 426.9 MB, free: 13.95 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003443/0.6116, allocations: 469.7 kB / 427.3 MB, free: 13.51 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009746/0.6213, allocations: 6.099 MB / 433.4 MB, free: 7.348 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001605/0.623, allocations: 2.002 MB / 435.4 MB, free: 5.309 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00176/0.6248, allocations: 0.496 MB / 435.9 MB, free: 4.809 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004052/0.6252, allocations: 143.3 kB / 436.1 MB, free: 4.668 MB / 318.1 MB Notification: Performance of SimCode: time 1.483e-06/0.6252, allocations: 1.203 kB / 436.1 MB, free: 4.668 MB / 318.1 MB Notification: Performance of Templates: time 0.04926/0.6745, allocations: 24.46 MB / 460.5 MB, free: 12.2 MB / 350.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/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