Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 100.9 kB / 17.59 MB, free: 5.426 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.001255/0.001255, allocations: 191.3 kB / 18.52 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001275, allocations: 46.55 kB / 301.3 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1176, allocations: 49.46 MB / 350.8 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02194/0.1396, allocations: 15.16 MB / 365.9 MB, free: 5.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01267/0.1523, allocations: 5.111 MB / 371 MB, free: 52 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.2209/0.3733, allocations: 93.11 kB / 371.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005121/0.3785, allocations: 1.057 MB / 372.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005139/0.3837, allocations: 1.265 MB / 373.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002889/0.3866, allocations: 0.8897 MB / 374.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006254/0.3929, allocations: 3.585 MB / 377.9 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006432/0.3994, allocations: 3.315 MB / 381.2 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003984/0.4034, allocations: 1.719 MB / 382.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004432/0.4079, allocations: 2.043 MB / 385 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001946/0.4098, allocations: 480.6 kB / 385.5 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003613/0.4135, allocations: 0.6971 MB / 386.2 MB, free: 7.328 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002244/0.4157, allocations: 1.144 MB / 387.3 MB, free: 6.645 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004917/0.4207, allocations: 2.047 MB / 389.3 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008675/0.4294, allocations: 6.198 MB / 395.5 MB, free: 1.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.4294, allocations: 4 kB / 395.5 MB, free: 1.656 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4294, allocations: 0 / 395.5 MB, free: 1.656 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002597/0.4297, allocations: 5.281 kB / 395.6 MB, free: 1.652 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01432/0.444, allocations: 4.249 MB / 399.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.4441, allocations: 9.281 kB / 399.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004016/0.4481, allocations: 0.6231 MB / 400.4 MB, free: 14.46 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005699/0.4539, allocations: 2.217 MB / 402.6 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002566/0.4542, allocations: 239.2 kB / 402.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009874/0.4552, allocations: 315.2 kB / 403.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008262/0.4634, allocations: 4.045 MB / 407.2 MB, free: 8.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.911e-05/0.4636, allocations: 4 kB / 407.2 MB, free: 8.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003089/0.4639, allocations: 127.8 kB / 407.4 MB, free: 8.039 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001571/0.464, allocations: 154.2 kB / 407.5 MB, free: 7.887 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006596/0.4706, allocations: 3.386 MB / 410.9 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02217/0.4928, allocations: 13.29 MB / 424.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004245/0.4971, allocations: 3.965 MB / 428.2 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001702/0.4989, allocations: 1.005 MB / 429.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005467/0.5044, allocations: 2.658 MB / 431.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.123e-05/0.5044, allocations: 51.5 kB / 431.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 3.667e-06/0.5045, allocations: 0 / 431.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01307/0.5175, allocations: 5.974 MB / 437.8 MB, free: 8.551 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.5176, allocations: 72.66 kB / 437.9 MB, free: 8.465 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003778/0.5214, allocations: 1.897 MB / 439.8 MB, free: 6.523 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001574/0.5216, allocations: 45.7 kB / 439.9 MB, free: 6.473 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001082/0.5227, allocations: 1.503 MB / 441.4 MB, free: 4.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004456/0.5231, allocations: 0.4904 MB / 441.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005655/0.5237, allocations: 331.2 kB / 442.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.9e-05/0.5238, allocations: 305.1 kB / 442.5 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.5251, allocations: 0.7691 MB / 443.2 MB, free: 3.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001669/0.5267, allocations: 1.377 MB / 444.6 MB, free: 1.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003128/0.5299, allocations: 2.315 MB / 446.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.93e-05/0.5299, allocations: 8 kB / 446.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004327/0.5343, allocations: 2.47 MB / 449.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.963e-05/0.5343, allocations: 16.16 kB / 449.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.327e-05/0.5344, allocations: 20 kB / 449.4 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003892/0.5348, allocations: 122.5 kB / 449.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001749/0.5365, allocations: 491.2 kB / 450 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.5377, allocations: 1.398 MB / 451.4 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001849/0.5396, allocations: 115.8 kB / 451.6 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001867/0.5398, allocations: 84 kB / 451.6 MB, free: 9.977 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001875/0.5416, allocations: 0.9851 MB / 452.6 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005641/0.5422, allocations: 205.5 kB / 452.8 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003576/0.5458, allocations: 1.954 MB / 454.8 MB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.5458, allocations: 16 kB / 454.8 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.5458, allocations: 0 / 454.8 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/0.5459, allocations: 7.969 kB / 454.8 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009298/0.5552, allocations: 4.995 MB / 459.8 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.818e-06/0.5552, allocations: 4 kB / 459.8 MB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001354/0.5566, allocations: 307.8 kB / 460.1 MB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003081/0.5569, allocations: 98.45 kB / 460.2 MB, free: 1.297 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.557, allocations: 28 kB / 460.2 MB, free: 1.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009855/0.558, allocations: 1.379 MB / 461.6 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.558, allocations: 7.938 kB / 461.6 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004617/0.5627, allocations: 3.078 MB / 464.7 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001122/0.5638, allocations: 458.5 kB / 465.1 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006389/0.5645, allocations: 28 kB / 465.2 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001338/0.5658, allocations: 79.97 kB / 465.2 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001784/0.566, allocations: 89.12 kB / 465.3 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.848e-05/0.5661, allocations: 36 kB / 465.4 MB, free: 11.92 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002541/0.5686, allocations: 1.289 MB / 466.7 MB, free: 10.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5686, allocations: 0 / 466.7 MB, free: 10.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002204/0.5709, allocations: 0.5312 MB / 467.2 MB, free: 10.07 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.0004046/0.5713, allocations: 173.5 kB / 467.4 MB, free: 9.898 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006068/0.5774, allocations: 2.841 MB / 470.2 MB, free: 7.004 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.5774, allocations: 0.875 kB / 470.2 MB, free: 7.004 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001714/0.5791, allocations: 1.178 MB / 471.4 MB, free: 5.773 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003423/0.5826, allocations: 0.5102 MB / 471.9 MB, free: 5.266 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01193/0.5945, allocations: 5.681 MB / 477.6 MB, free: 15.53 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002516/0.5971, allocations: 2.216 MB / 479.8 MB, free: 13.28 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008313/0.5979, allocations: 163.4 kB / 479.9 MB, free: 13.12 MB / 398.1 MB Notification: Performance of SimCode: time 1.303e-06/0.5979, allocations: 0 / 479.9 MB, free: 13.12 MB / 398.1 MB Notification: Performance of Templates: time 0.2852/0.8831, allocations: 85.85 MB / 0.5525 GB, free: 144.9 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches