Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 109.1 kB / 16.92 MB, free: 5.781 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.001495/0.001495, allocations: 191.5 kB / 17.85 MB, free: 5.164 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.243/1.243, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009818/0.0009819, allocations: 42.88 kB / 300.7 MB, free: 5.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07527/0.07627, allocations: 49.46 MB / 350.2 MB, free: 4.289 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1671/0.2434, allocations: 39.42 MB / 389.6 MB, free: 5.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01787/0.2613, allocations: 10.42 MB / 400 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005971/0.2673, allocations: 303.3 kB / 400.3 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01596/0.2833, allocations: 8.518 MB / 408.9 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009101/0.2924, allocations: 3.407 MB / 412.3 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004604/0.297, allocations: 2.322 MB / 414.6 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01032/0.3074, allocations: 12.77 MB / 427.4 MB, free: 8.699 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02461/0.332, allocations: 25.41 MB / 452.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00655/0.3385, allocations: 6.771 MB / 459.5 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007692/0.3463, allocations: 7.74 MB / 467.3 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002146/0.3484, allocations: 1.949 MB / 469.2 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003392/0.3518, allocations: 2.355 MB / 471.6 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002581/0.3544, allocations: 3.959 MB / 475.5 MB, free: 8.305 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006616/0.361, allocations: 7.56 MB / 483.1 MB, free: 0.7148 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01763/0.3787, allocations: 25.69 MB / 0.4969 GB, free: 6.949 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3787, allocations: 8 kB / 0.4969 GB, free: 6.941 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3787, allocations: 0 / 0.4969 GB, free: 6.941 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003482/0.3791, allocations: 0 / 0.4969 GB, free: 6.941 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.03112/0.4102, allocations: 15.02 MB / 0.5115 GB, free: 7.801 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.4102, allocations: 8.031 kB / 0.5115 GB, free: 7.793 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002718/0.413, allocations: 1.719 MB / 0.5132 GB, free: 6.062 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2697/0.6827, allocations: 6.126 MB / 0.5192 GB, free: 118.7 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01297/0.6957, allocations: 7.805 MB / 0.5268 GB, free: 115.5 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005701/0.6962, allocations: 0.9112 MB / 0.5277 GB, free: 115 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002517/0.6988, allocations: 1.198 MB / 0.5289 GB, free: 114.6 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0299/0.7287, allocations: 18.66 MB / 0.5471 GB, free: 107.1 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002971/0.729, allocations: 19.38 kB / 0.5471 GB, free: 107.1 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001421/0.7304, allocations: 0.4933 MB / 0.5476 GB, free: 106.8 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005629/0.731, allocations: 0.6375 MB / 0.5482 GB, free: 106.6 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02407/0.7551, allocations: 16.76 MB / 0.5646 GB, free: 92.82 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06552/0.8206, allocations: 58.86 MB / 0.6221 GB, free: 32.98 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01784/0.8385, allocations: 32.88 MB / 0.6542 GB, free: 12.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005584/0.8441, allocations: 3.726 MB / 0.6578 GB, free: 8.465 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01366/0.8578, allocations: 8.661 MB / 0.6663 GB, free: 15.8 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.675e-05/0.8579, allocations: 81.3 kB / 0.6664 GB, free: 15.71 MB / 462.1 MB Notification: Performance of pre-optimization done (n=349): time 5.681e-06/0.8579, allocations: 0 / 0.6664 GB, free: 15.71 MB / 462.1 MB Notification: Performance of matching and sorting (n=389): time 0.03167/0.8896, allocations: 17.55 MB / 0.6835 GB, free: 14.01 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/0.8897, allocations: 90.47 kB / 0.6836 GB, free: 13.91 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006108/0.8958, allocations: 5.016 MB / 0.6885 GB, free: 8.898 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002179/0.896, allocations: 89.7 kB / 0.6886 GB, free: 8.805 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002941/0.899, allocations: 5.442 MB / 0.6939 GB, free: 3.328 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009235/0.8999, allocations: 1.353 MB / 0.6952 GB, free: 1.988 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001712/0.9016, allocations: 1.322 MB / 0.6965 GB, free: 0.6562 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.367e-05/0.9017, allocations: 313 kB / 0.6968 GB, free: 356 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1691/1.071, allocations: 2.901 MB / 0.6996 GB, free: 149.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006092/1.077, allocations: 5.869 MB / 0.7054 GB, free: 145.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01029/1.087, allocations: 9.441 MB / 0.7146 GB, free: 138.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001328/1.087, allocations: 28.34 kB / 0.7146 GB, free: 138.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01506/1.102, allocations: 9.844 MB / 0.7242 GB, free: 134.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7e-05/1.103, allocations: 51.16 kB / 0.7243 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001274/1.103, allocations: 98.91 kB / 0.7244 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002106/1.105, allocations: 0.9492 MB / 0.7253 GB, free: 134.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004598/1.109, allocations: 1.584 MB / 0.7268 GB, free: 134.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009285/1.119, allocations: 10.18 MB / 0.7368 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004435/1.123, allocations: 412.2 kB / 0.7372 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006333/1.124, allocations: 360.3 kB / 0.7375 GB, free: 127.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005591/1.129, allocations: 4.244 MB / 0.7417 GB, free: 125.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00105/1.13, allocations: 0.5113 MB / 0.7422 GB, free: 125.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009239/1.14, allocations: 6.489 MB / 0.7485 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.057e-05/1.14, allocations: 41.56 kB / 0.7485 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.46e-05/1.14, allocations: 10.94 kB / 0.7486 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-05/1.14, allocations: 17.2 kB / 0.7486 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0207/1.161, allocations: 15.71 MB / 0.7639 GB, free: 111.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/1.161, allocations: 4 kB / 0.7639 GB, free: 111.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002778/1.163, allocations: 0.7458 MB / 0.7646 GB, free: 110.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001724/1.165, allocations: 0.7969 MB / 0.7654 GB, free: 109.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001988/1.165, allocations: 87.92 kB / 0.7655 GB, free: 109.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007493/1.173, allocations: 9.358 MB / 0.7746 GB, free: 100.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.173, allocations: 4 kB / 0.7747 GB, free: 100.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01023/1.183, allocations: 9.495 MB / 0.7839 GB, free: 90.72 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001638/1.185, allocations: 1.055 MB / 0.785 GB, free: 89.79 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005448/1.185, allocations: 68 kB / 0.785 GB, free: 89.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002001/1.187, allocations: 223.8 kB / 0.7852 GB, free: 89.51 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000416/1.188, allocations: 270.7 kB / 0.7855 GB, free: 89.24 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002011/1.188, allocations: 112 kB / 0.7856 GB, free: 89.13 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003533/1.191, allocations: 3.35 MB / 0.7889 GB, free: 85.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.191, allocations: 0 / 0.7889 GB, free: 85.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005031/1.196, allocations: 1.882 MB / 0.7907 GB, free: 83.92 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (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.01095/1.207, allocations: 10.21 MB / 0.8007 GB, free: 73.59 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02388/1.231, allocations: 13.11 MB / 0.8135 GB, free: 60.45 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/1.231, allocations: 5.531 kB / 0.8135 GB, free: 60.45 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004232/1.236, allocations: 3.55 MB / 0.817 GB, free: 56.82 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006371/1.242, allocations: 1.298 MB / 0.8182 GB, free: 55.56 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2674/1.509, allocations: 80.52 MB / 0.8969 GB, free: 142.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006696/1.516, allocations: 7.323 MB / 0.904 GB, free: 140.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005434/1.522, allocations: 2.149 MB / 0.9061 GB, free: 140.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004618/1.526, allocations: 4.337 MB / 0.9103 GB, free: 136.4 MB / 494.1 MB Notification: Performance of SimCode: time 7.01e-07/1.526, allocations: 0 / 0.9103 GB, free: 136.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.124/2.65, allocations: 149.5 MB / 1.056 GB, free: 124.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.01/16.66, allocations: 5.844 kB / 1.056 GB, free: 124.6 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches