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.001745/0.001745, allocations: 114.5 kB / 17.73 MB, free: 5.328 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.002143/0.002143, allocations: 187 kB / 18.67 MB, free: 4.398 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.686/1.686, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001203/0.001203, allocations: 55.92 kB / 328.5 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1194, allocations: 46.61 MB / 375.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.2974/0.4168, allocations: 10.88 MB / 386 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009738/0.4266, allocations: 3.675 MB / 389.7 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003665/0.4304, allocations: 60.72 kB / 389.8 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003013/0.4335, allocations: 0.813 MB / 390.6 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004903/0.4384, allocations: 0.8617 MB / 391.4 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002078/0.4405, allocations: 460.7 kB / 391.9 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006475/0.447, allocations: 2.959 MB / 394.9 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004399/0.4514, allocations: 2.688 MB / 397.5 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003585/0.455, allocations: 1.37 MB / 398.9 MB, free: 464 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005028/0.4601, allocations: 1.753 MB / 400.7 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001346/0.4615, allocations: 373.2 kB / 401 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0021/0.4636, allocations: 479.5 kB / 401.5 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00157/0.4652, allocations: 1.069 MB / 402.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003558/0.4687, allocations: 1.674 MB / 404.2 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009027/0.4778, allocations: 4.878 MB / 409.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.058e-05/0.4778, allocations: 1.438 kB / 409.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.4779, allocations: 0 / 409.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001829/0.478, allocations: 0 / 409.1 MB, free: 10.71 MB / 334.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.01145/0.4895, allocations: 3.395 MB / 412.5 MB, free: 8.367 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.062e-05/0.4896, allocations: 10.12 kB / 412.5 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001317/0.4909, allocations: 334.7 kB / 412.9 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00394/0.4949, allocations: 1.705 MB / 414.6 MB, free: 6.984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002461/0.4952, allocations: 191.8 kB / 414.7 MB, free: 6.895 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005796/0.4957, allocations: 251.1 kB / 415 MB, free: 6.809 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007153/0.5029, allocations: 3.286 MB / 418.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.147e-05/0.503, allocations: 9.5 kB / 418.3 MB, free: 4.262 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002466/0.5033, allocations: 104 kB / 418.4 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001588/0.5034, allocations: 124.9 kB / 418.5 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005659/0.5091, allocations: 2.752 MB / 421.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02381/0.5329, allocations: 10.39 MB / 431.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002316/0.5353, allocations: 1.346 MB / 433 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001412/0.5368, allocations: 0.7512 MB / 433.7 MB, free: 4.348 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004296/0.5372, allocations: 203.2 kB / 433.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.344e-05/0.5373, allocations: 47.55 kB / 434 MB, free: 4.055 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 5.32e-06/0.5373, allocations: 0 / 434 MB, free: 4.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.02031/0.5577, allocations: 7.038 MB / 441 MB, free: 12.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.137e-05/0.5578, allocations: 68.34 kB / 441.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003844/0.5617, allocations: 1.785 MB / 442.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002019/0.5619, allocations: 45.7 kB / 442.9 MB, free: 10.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001328/0.5632, allocations: 1.279 MB / 444.2 MB, free: 9.695 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006345/0.5639, allocations: 425.9 kB / 444.6 MB, free: 9.273 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006281/0.5645, allocations: 299.2 kB / 444.9 MB, free: 8.973 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002072/0.5647, allocations: 305.7 kB / 445.2 MB, free: 8.672 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001423/0.5662, allocations: 0.773 MB / 446 MB, free: 7.898 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00193/0.5681, allocations: 1.301 MB / 447.3 MB, free: 6.367 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003376/0.5715, allocations: 2.211 MB / 449.5 MB, free: 3.922 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.425e-05/0.5715, allocations: 4 kB / 449.5 MB, free: 3.918 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.005832/0.5774, allocations: 2.474 MB / 452 MB, free: 1.422 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.616e-05/0.5775, allocations: 16 kB / 452 MB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.613e-05/0.5775, allocations: 19.94 kB / 452 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008378/0.5784, allocations: 239.2 kB / 452.2 MB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001651/0.58, allocations: 419.5 kB / 452.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003674/0.5837, allocations: 3.245 MB / 455.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002758/0.5865, allocations: 127.8 kB / 456 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002503/0.5868, allocations: 71.94 kB / 456.1 MB, free: 13 MB / 382.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.00261/0.5894, allocations: 0.8251 MB / 456.9 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007536/0.5902, allocations: 181.8 kB / 457.1 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004016/0.5942, allocations: 2.039 MB / 459.1 MB, free: 9.926 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.468e-05/0.5942, allocations: 12 kB / 459.1 MB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.5942, allocations: 0 / 459.1 MB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.677e-05/0.5943, allocations: 7.969 kB / 459.2 MB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009425/0.6037, allocations: 4.737 MB / 463.9 MB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.868e-06/0.6038, allocations: 8.031 kB / 463.9 MB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/0.6049, allocations: 259.6 kB / 464.2 MB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005301/0.6054, allocations: 203.2 kB / 464.4 MB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.656e-05/0.6055, allocations: 24 kB / 464.4 MB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002938/0.6084, allocations: 3.222 MB / 467.6 MB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.6085, allocations: 4 kB / 467.6 MB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005139/0.6136, allocations: 3.116 MB / 470.7 MB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001135/0.6148, allocations: 430.8 kB / 471.1 MB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002522/0.615, allocations: 27.92 kB / 471.2 MB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009759/0.616, allocations: 91.88 kB / 471.3 MB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001881/0.6162, allocations: 80.83 kB / 471.3 MB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.744e-05/0.6163, allocations: 35.98 kB / 471.4 MB, free: 13.22 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002018/0.6183, allocations: 1.224 MB / 472.6 MB, free: 12 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.6183, allocations: 0 / 472.6 MB, free: 12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002146/0.6205, allocations: 484 kB / 473.1 MB, free: 11.53 MB / 398.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.0004535/0.621, allocations: 195 kB / 473.3 MB, free: 11.33 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003908/0.6249, allocations: 2.35 MB / 475.6 MB, free: 8.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.6249, allocations: 0 / 475.6 MB, free: 8.91 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001879/0.6268, allocations: 1.343 MB / 477 MB, free: 7.496 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002506/0.6293, allocations: 0.4908 MB / 477.4 MB, free: 7.008 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008727/0.6381, allocations: 4.846 MB / 482.3 MB, free: 2.098 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00177/0.6399, allocations: 2.006 MB / 484.3 MB, free: 56 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001747/0.6416, allocations: 0.5 MB / 484.8 MB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004475/0.6421, allocations: 139.3 kB / 484.9 MB, free: 15.41 MB / 414.1 MB Notification: Performance of SimCode: time 1.483e-06/0.6421, allocations: 0 / 484.9 MB, free: 15.41 MB / 414.1 MB Notification: Performance of Templates: time 0.0535/0.6956, allocations: 26.19 MB / 0.4991 GB, free: 5.176 MB / 430.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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