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.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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_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.001544/0.001544, allocations: 107.4 kB / 16.51 MB, free: 6.707 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.001754/0.001754, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.289/1.289, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009747/0.0009747, allocations: 54.95 kB / 300.1 MB, free: 6.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07692/0.07791, allocations: 49.44 MB / 349.5 MB, free: 4.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.1627/0.2407, allocations: 40.42 MB / 390 MB, free: 4.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01925/0.2599, allocations: 10.83 MB / 400.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006567/0.2665, allocations: 297.9 kB / 401.1 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01727/0.2839, allocations: 8.21 MB / 409.3 MB, free: 7.934 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0113/0.2952, allocations: 3.223 MB / 412.5 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006176/0.3014, allocations: 2.229 MB / 414.7 MB, free: 3.621 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01505/0.3164, allocations: 13.37 MB / 428.1 MB, free: 7.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02815/0.3446, allocations: 20.8 MB / 448.9 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007839/0.3525, allocations: 6.024 MB / 454.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008805/0.3613, allocations: 7.543 MB / 462.5 MB, free: 5.176 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002152/0.3635, allocations: 1.328 MB / 463.8 MB, free: 3.848 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003912/0.3674, allocations: 1.714 MB / 465.5 MB, free: 2.133 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00282/0.3703, allocations: 3.353 MB / 468.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007713/0.378, allocations: 7.059 MB / 475.9 MB, free: 7.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0209/0.3989, allocations: 25.8 MB / 0.49 GB, free: 13.8 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3989, allocations: 3.938 kB / 0.49 GB, free: 13.8 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3989, allocations: 0 / 0.49 GB, free: 13.8 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004946/0.3994, allocations: 4 kB / 0.49 GB, free: 13.79 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: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.03834/0.4378, allocations: 15.45 MB / 0.5051 GB, free: 14.22 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.4378, allocations: 8.031 kB / 0.5051 GB, free: 14.21 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003961/0.4418, allocations: 1.756 MB / 0.5068 GB, free: 12.45 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03292/0.4747, allocations: 6.217 MB / 0.5129 GB, free: 6.207 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2847/0.7594, allocations: 7.986 MB / 0.5207 GB, free: 115.1 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007613/0.7602, allocations: 0.9315 MB / 0.5216 GB, free: 115.1 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003222/0.7635, allocations: 1.226 MB / 0.5228 GB, free: 115 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03271/0.7962, allocations: 19.03 MB / 0.5414 GB, free: 107.4 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002344/0.7965, allocations: 26.45 kB / 0.5414 GB, free: 107.4 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00115/0.7976, allocations: 0.5051 MB / 0.5419 GB, free: 107 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004086/0.798, allocations: 0.6521 MB / 0.5425 GB, free: 107 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02481/0.8228, allocations: 17.03 MB / 0.5591 GB, free: 96.33 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07138/0.8943, allocations: 60.52 MB / 0.6182 GB, free: 35.09 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01774/0.912, allocations: 33.15 MB / 0.6506 GB, free: 14.07 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0055/0.9176, allocations: 3.809 MB / 0.6543 GB, free: 10.25 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01428/0.9319, allocations: 8.898 MB / 0.663 GB, free: 1.359 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.376e-05/0.932, allocations: 77.41 kB / 0.6631 GB, free: 1.273 MB / 446.1 MB Notification: Performance of pre-optimization done (n=361): time 4.148e-06/0.932, allocations: 0 / 0.6631 GB, free: 1.273 MB / 446.1 MB Notification: Performance of matching and sorting (n=403): time 0.03462/0.9666, allocations: 17.75 MB / 0.6804 GB, free: 15.41 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.501e-05/0.9667, allocations: 98.52 kB / 0.6805 GB, free: 15.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008053/0.9747, allocations: 5.24 MB / 0.6856 GB, free: 10.08 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002585/0.975, allocations: 93.7 kB / 0.6857 GB, free: 9.98 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003392/0.9784, allocations: 5.605 MB / 0.6912 GB, free: 4.344 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001102/0.9795, allocations: 1.405 MB / 0.6926 GB, free: 2.949 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002012/0.9815, allocations: 1.35 MB / 0.6939 GB, free: 1.59 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.12e-05/0.9816, allocations: 305.1 kB / 0.6942 GB, free: 1.289 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1553/1.137, allocations: 2.967 MB / 0.6971 GB, free: 147.6 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006096/1.143, allocations: 6.013 MB / 0.703 GB, free: 143.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01/1.153, allocations: 9.661 MB / 0.7124 GB, free: 136.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.951e-05/1.153, allocations: 29.31 kB / 0.7124 GB, free: 136.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01555/1.169, allocations: 10.08 MB / 0.7223 GB, free: 132.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.449e-05/1.169, allocations: 54.03 kB / 0.7223 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001205/1.169, allocations: 103.3 kB / 0.7224 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002324/1.171, allocations: 0.9443 MB / 0.7233 GB, free: 132.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004763/1.176, allocations: 1.632 MB / 0.7249 GB, free: 132.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009265/1.185, allocations: 9.5 MB / 0.7342 GB, free: 125.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00509/1.191, allocations: 412.5 kB / 0.7346 GB, free: 125.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008868/1.191, allocations: 364.7 kB / 0.7349 GB, free: 125.8 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * 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.006576/1.198, allocations: 4.3 MB / 0.7391 GB, free: 123.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00118/1.199, allocations: 0.5405 MB / 0.7397 GB, free: 123.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00968/1.209, allocations: 6.673 MB / 0.7462 GB, free: 121 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.031e-05/1.209, allocations: 38.69 kB / 0.7462 GB, free: 121 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-05/1.209, allocations: 7.719 kB / 0.7462 GB, free: 121 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.324e-05/1.209, allocations: 26.44 kB / 0.7463 GB, free: 121 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02588/1.235, allocations: 16.25 MB / 0.7621 GB, free: 110.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-05/1.235, allocations: 7.719 kB / 0.7621 GB, free: 110.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003056/1.238, allocations: 0.7735 MB / 0.7629 GB, free: 109.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00202/1.24, allocations: 0.7864 MB / 0.7637 GB, free: 109 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000229/1.24, allocations: 95.08 kB / 0.7637 GB, free: 109 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007928/1.248, allocations: 8.667 MB / 0.7722 GB, free: 100 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/1.248, allocations: 4.156 kB / 0.7722 GB, free: 100 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01186/1.26, allocations: 9.792 MB / 0.7818 GB, free: 90.41 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002108/1.262, allocations: 1.098 MB / 0.7829 GB, free: 89.35 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006685/1.263, allocations: 76 kB / 0.7829 GB, free: 89.28 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002276/1.265, allocations: 227.7 kB / 0.7831 GB, free: 89.05 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005371/1.266, allocations: 270.8 kB / 0.7834 GB, free: 88.79 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002353/1.266, allocations: 123.9 kB / 0.7835 GB, free: 88.67 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00426/1.27, allocations: 3.497 MB / 0.7869 GB, free: 85.19 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.61e-07/1.27, allocations: 0 / 0.7869 GB, free: 85.19 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00551/1.276, allocations: 1.937 MB / 0.7888 GB, free: 83.26 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (384): * Single equations (assignments): 379 * 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,62.5%), (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.01182/1.288, allocations: 10.52 MB / 0.7991 GB, free: 72.62 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009638/1.297, allocations: 7.826 MB / 0.8067 GB, free: 64.72 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/1.297, allocations: 0 / 0.8067 GB, free: 64.72 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004071/1.301, allocations: 3.622 MB / 0.8103 GB, free: 61.03 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005506/1.307, allocations: 1.313 MB / 0.8116 GB, free: 59.75 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2873/1.594, allocations: 89.62 MB / 0.8991 GB, free: 137.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006298/1.601, allocations: 7.422 MB / 0.9063 GB, free: 135.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006071/1.607, allocations: 2.193 MB / 0.9085 GB, free: 135 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004863/1.611, allocations: 4.501 MB / 0.9129 GB, free: 131.2 MB / 494.1 MB Notification: Performance of SimCode: time 1.072e-06/1.612, allocations: 0 / 0.9129 GB, free: 131.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3971/2.009, allocations: 152.9 MB / 1.062 GB, free: 123.2 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000188/2.009, allocations: 296.2 kB / 1.062 GB, free: 122.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.745/6.754, allocations: 1.891 kB / 1.062 GB, free: 122.8 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches