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.001054/0.001054, allocations: 103.5 kB / 16.62 MB, free: 6.801 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.001169/0.001169, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.292/1.292, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009252/0.0009252, allocations: 46.55 kB / 300.1 MB, free: 6.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09993/0.1009, allocations: 49.45 MB / 349.6 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01774/0.1186, allocations: 14.99 MB / 364.6 MB, free: 5.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0107/0.1294, allocations: 5.007 MB / 369.6 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004031/0.1335, allocations: 91.62 kB / 369.7 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1806/0.3141, allocations: 0.9361 MB / 370.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004023/0.3182, allocations: 1.132 MB / 371.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002017/0.3203, allocations: 0.8041 MB / 372.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005152/0.3254, allocations: 3.674 MB / 376.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003882/0.3293, allocations: 3.313 MB / 379.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003166/0.3325, allocations: 1.674 MB / 381.2 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004715/0.3373, allocations: 2.047 MB / 383.3 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00111/0.3384, allocations: 481.9 kB / 383.7 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002015/0.3404, allocations: 0.6875 MB / 384.4 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009612/0.3414, allocations: 1.139 MB / 385.6 MB, free: 7.066 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002761/0.3442, allocations: 2.041 MB / 387.6 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006326/0.3505, allocations: 6.191 MB / 393.8 MB, free: 2.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.3506, allocations: 4 kB / 393.8 MB, free: 2.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3506, allocations: 0 / 393.8 MB, free: 2.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001955/0.3508, allocations: 0 / 393.8 MB, free: 2.406 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.01115/0.3619, allocations: 4.255 MB / 398 MB, free: 15.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.362, allocations: 8.562 kB / 398.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00293/0.3649, allocations: 0.6212 MB / 398.7 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004357/0.3693, allocations: 2.197 MB / 400.9 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002316/0.3696, allocations: 240 kB / 401.1 MB, free: 13.56 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006825/0.3703, allocations: 310.7 kB / 401.4 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008996/0.3793, allocations: 4.05 MB / 405.5 MB, free: 9.281 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000164/0.3795, allocations: 11.89 kB / 405.5 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004895/0.38, allocations: 127.4 kB / 405.6 MB, free: 9.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000154/0.3801, allocations: 146.2 kB / 405.7 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006819/0.387, allocations: 3.386 MB / 409.1 MB, free: 5.609 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02412/0.4111, allocations: 13.3 MB / 422.4 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004301/0.4155, allocations: 3.965 MB / 426.4 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001683/0.4172, allocations: 0.9996 MB / 427.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005749/0.4229, allocations: 2.651 MB / 430 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.52e-05/0.423, allocations: 47.5 kB / 430.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 3.076e-06/0.423, allocations: 4 kB / 430.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01287/0.4359, allocations: 5.987 MB / 436.1 MB, free: 9.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.246e-05/0.436, allocations: 72.66 kB / 436.1 MB, free: 9.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00392/0.4399, allocations: 1.897 MB / 438 MB, free: 7.633 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001625/0.4401, allocations: 45.7 kB / 438.1 MB, free: 7.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001239/0.4414, allocations: 1.5 MB / 439.6 MB, free: 6.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004934/0.4419, allocations: 495.7 kB / 440.1 MB, free: 5.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005883/0.4425, allocations: 331.3 kB / 440.4 MB, free: 5.262 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.4426, allocations: 301.1 kB / 440.7 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001382/0.444, allocations: 0.7691 MB / 441.5 MB, free: 4.195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001689/0.4457, allocations: 1.373 MB / 442.8 MB, free: 2.555 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003172/0.4489, allocations: 2.315 MB / 445.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.908e-05/0.4489, allocations: 7.938 kB / 445.2 MB, free: 15.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004575/0.4535, allocations: 2.473 MB / 447.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.551e-05/0.4536, allocations: 16 kB / 447.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.367e-05/0.4536, allocations: 16 kB / 447.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003905/0.454, allocations: 126.8 kB / 447.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001848/0.4559, allocations: 479.2 kB / 448.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001156/0.457, allocations: 1.41 MB / 449.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001815/0.4589, allocations: 119.9 kB / 449.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001885/0.4591, allocations: 83.98 kB / 449.9 MB, free: 11.09 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.001799/0.4609, allocations: 0.985 MB / 450.8 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005333/0.4614, allocations: 197.6 kB / 451 MB, free: 9.902 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003526/0.4649, allocations: 1.969 MB / 453 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/0.465, allocations: 16 kB / 453 MB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.465, allocations: 0 / 453 MB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.465, allocations: 7.969 kB / 453 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009808/0.4748, allocations: 4.997 MB / 458 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.264e-05/0.4749, allocations: 7.938 kB / 458 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001418/0.4763, allocations: 307.5 kB / 458.3 MB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003253/0.4767, allocations: 98.72 kB / 458.4 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001312/0.4768, allocations: 27.98 kB / 458.5 MB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001016/0.4778, allocations: 1.375 MB / 459.8 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.4779, allocations: 4 kB / 459.8 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004771/0.4826, allocations: 3.083 MB / 462.9 MB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001111/0.4838, allocations: 454.5 kB / 463.4 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005746/0.4844, allocations: 24 kB / 463.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0013/0.4857, allocations: 83.89 kB / 463.5 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/0.4859, allocations: 85.14 kB / 463.5 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.818e-05/0.486, allocations: 52.05 kB / 463.6 MB, free: 13.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002604/0.4886, allocations: 1.285 MB / 464.9 MB, free: 11.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4886, allocations: 0 / 464.9 MB, free: 11.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002512/0.4911, allocations: 0.5312 MB / 465.4 MB, free: 11.18 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.0004637/0.4916, allocations: 169.6 kB / 465.6 MB, free: 11.01 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006057/0.4977, allocations: 2.826 MB / 468.4 MB, free: 8.129 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.75e-06/0.4977, allocations: 0 / 468.4 MB, free: 8.129 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001744/0.4994, allocations: 1.175 MB / 469.6 MB, free: 6.902 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003311/0.5028, allocations: 0.516 MB / 470.1 MB, free: 6.391 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01237/0.5152, allocations: 7.015 MB / 477.1 MB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002774/0.518, allocations: 2.267 MB / 479.4 MB, free: 13.03 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002113/0.5201, allocations: 0.5092 MB / 479.9 MB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006259/0.5208, allocations: 155.4 kB / 480 MB, free: 12.37 MB / 398.1 MB Notification: Performance of SimCode: time 2.485e-06/0.5208, allocations: 0 / 480 MB, free: 12.37 MB / 398.1 MB Notification: Performance of Templates: time 0.04861/0.5694, allocations: 26.06 MB / 0.4942 GB, free: 2.629 MB / 414.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/jenkins/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/jenkins/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