Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 113.2 kB / 17.73 MB, free: 5.355 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.001801/0.001802, allocations: 180.1 kB / 18.66 MB, free: 4.438 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.452/1.452, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001375/0.001375, allocations: 51.94 kB / 328.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1207, allocations: 46.63 MB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.2858/0.4065, allocations: 15.12 MB / 390.3 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01255/0.4191, allocations: 5.119 MB / 395.4 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004025/0.4233, allocations: 84.12 kB / 395.5 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003738/0.427, allocations: 1.063 MB / 396.5 MB, free: 352 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00542/0.4325, allocations: 1.253 MB / 397.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003004/0.4355, allocations: 0.9029 MB / 398.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006964/0.4425, allocations: 3.621 MB / 402.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005535/0.448, allocations: 3.262 MB / 405.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004187/0.4522, allocations: 1.72 MB / 407.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00552/0.4578, allocations: 2.047 MB / 409.3 MB, free: 9.781 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0018/0.4596, allocations: 478.4 kB / 409.8 MB, free: 9.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003875/0.4635, allocations: 0.6782 MB / 410.5 MB, free: 9.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002653/0.4662, allocations: 1.149 MB / 411.6 MB, free: 8.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005448/0.4716, allocations: 2.042 MB / 413.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01015/0.4818, allocations: 6.27 MB / 420 MB, free: 2.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.4818, allocations: 1.25 kB / 420 MB, free: 2.609 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.4818, allocations: 3.938 kB / 420 MB, free: 2.605 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001436/0.482, allocations: 0 / 420 MB, free: 2.605 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01043/0.4924, allocations: 4.32 MB / 424.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.4925, allocations: 8.031 kB / 424.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002656/0.4951, allocations: 0.6388 MB / 424.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003522/0.4987, allocations: 2.153 MB / 427.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001704/0.4989, allocations: 234.7 kB / 427.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004223/0.4993, allocations: 312.3 kB / 427.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006643/0.5059, allocations: 4.047 MB / 431.7 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7e-05/0.506, allocations: 7.938 kB / 431.7 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002768/0.5063, allocations: 124 kB / 431.8 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001417/0.5065, allocations: 146.2 kB / 431.9 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005458/0.5119, allocations: 3.386 MB / 435.3 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01848/0.5304, allocations: 13.2 MB / 448.5 MB, free: 5.562 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005368/0.5358, allocations: 3.967 MB / 452.5 MB, free: 1.094 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002198/0.5381, allocations: 0.9838 MB / 453.5 MB, free: 116 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006011/0.5441, allocations: 2.654 MB / 456.1 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.283e-05/0.5441, allocations: 43.5 kB / 456.2 MB, free: 13.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.787e-06/0.5442, allocations: 0 / 456.2 MB, free: 13.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01619/0.5604, allocations: 6.057 MB / 462.2 MB, free: 7.168 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.49e-05/0.5604, allocations: 64.72 kB / 462.3 MB, free: 7.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003837/0.5643, allocations: 1.893 MB / 464.2 MB, free: 5.152 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001169/0.5644, allocations: 45.7 kB / 464.2 MB, free: 5.102 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001392/0.5658, allocations: 1.548 MB / 465.8 MB, free: 3.539 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005402/0.5664, allocations: 0.5074 MB / 466.3 MB, free: 3.027 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006989/0.5671, allocations: 331.4 kB / 466.6 MB, free: 2.695 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.5672, allocations: 301.1 kB / 466.9 MB, free: 2.398 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001682/0.5689, allocations: 0.773 MB / 467.7 MB, free: 1.625 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002377/0.5713, allocations: 1.379 MB / 469 MB, free: 15.97 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004513/0.5758, allocations: 2.316 MB / 471.4 MB, free: 13.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-05/0.5759, allocations: 7.938 kB / 471.4 MB, free: 13.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006743/0.5826, allocations: 2.479 MB / 473.9 MB, free: 10.89 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.994e-05/0.5827, allocations: 16 kB / 473.9 MB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.868e-05/0.5828, allocations: 24.09 kB / 473.9 MB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000548/0.5833, allocations: 118.5 kB / 474 MB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002531/0.5859, allocations: 499.2 kB / 474.5 MB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001803/0.5877, allocations: 1.41 MB / 475.9 MB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002614/0.5903, allocations: 111.8 kB / 476 MB, free: 8.574 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002526/0.5906, allocations: 80 kB / 476.1 MB, free: 8.496 MB / 398.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.003193/0.5938, allocations: 0.989 MB / 477.1 MB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009334/0.5948, allocations: 214.6 kB / 477.3 MB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004939/0.5997, allocations: 1.961 MB / 479.3 MB, free: 5.309 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.791e-05/0.5997, allocations: 12 kB / 479.3 MB, free: 5.297 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.318e-05/0.5998, allocations: 4 kB / 479.3 MB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.019e-05/0.5998, allocations: 7.969 kB / 479.3 MB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01241/0.6122, allocations: 4.983 MB / 484.3 MB, free: 196 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/0.6122, allocations: 256 / 484.3 MB, free: 196 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001398/0.6136, allocations: 319.5 kB / 484.6 MB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003232/0.614, allocations: 94.52 kB / 484.7 MB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001289/0.6141, allocations: 31.98 kB / 484.7 MB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001082/0.6152, allocations: 1.386 MB / 486.1 MB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.278e-06/0.6152, allocations: 15.88 kB / 486.1 MB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005072/0.6203, allocations: 3.083 MB / 489.2 MB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001111/0.6214, allocations: 471.6 kB / 489.6 MB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006317/0.6221, allocations: 24 kB / 489.7 MB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/0.6234, allocations: 83.97 kB / 489.7 MB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/0.6236, allocations: 89.06 kB / 489.8 MB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.474e-05/0.6237, allocations: 43.98 kB / 489.9 MB, free: 10.35 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002524/0.6263, allocations: 1.281 MB / 491.2 MB, free: 9.043 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6263, allocations: 0 / 491.2 MB, free: 9.043 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002508/0.6288, allocations: 0.5351 MB / 491.7 MB, free: 8.508 MB / 414.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.0004234/0.6292, allocations: 162.9 kB / 491.8 MB, free: 8.336 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003569/0.6328, allocations: 2.212 MB / 494.1 MB, free: 6.07 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.6328, allocations: 0 / 494.1 MB, free: 6.07 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001659/0.6345, allocations: 1.178 MB / 495.2 MB, free: 4.84 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002999/0.6375, allocations: 0.5122 MB / 495.8 MB, free: 4.324 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01103/0.6485, allocations: 5.669 MB / 0.4897 GB, free: 14.59 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002967/0.6515, allocations: 2.259 MB / 0.4919 GB, free: 12.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001772/0.6533, allocations: 0.5092 MB / 0.4924 GB, free: 11.79 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000562/0.6539, allocations: 151.4 kB / 0.4925 GB, free: 11.64 MB / 430.1 MB Notification: Performance of SimCode: time 5.51e-07/0.6539, allocations: 0 / 0.4925 GB, free: 11.64 MB / 430.1 MB Notification: Performance of Templates: time 0.05262/0.7065, allocations: 26.57 MB / 0.5185 GB, free: 1.02 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches