Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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.001861/0.001861, allocations: 103.2 kB / 17.58 MB, free: 5.422 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.002159/0.002159, allocations: 187.9 kB / 18.5 MB, free: 4.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.192/2.192, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.002253/0.002253, allocations: 52.14 kB / 280.8 MB, free: 3.055 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1151, allocations: 46.62 MB / 327.4 MB, free: 4.359 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.07486/0.19, allocations: 40.02 MB / 367.4 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03322/0.2233, allocations: 10.55 MB / 378 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009055/0.2324, allocations: 263.1 kB / 378.2 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.283/0.5155, allocations: 8.538 MB / 386.8 MB, free: 11.33 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01831/0.5338, allocations: 3.634 MB / 390.4 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0119/0.5458, allocations: 2.387 MB / 392.8 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0281/0.5739, allocations: 13.33 MB / 406.1 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06129/0.6352, allocations: 25.43 MB / 431.6 MB, free: 5.473 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01743/0.6527, allocations: 7.017 MB / 438.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0204/0.6731, allocations: 8.072 MB / 446.6 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007489/0.6807, allocations: 1.992 MB / 448.6 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01275/0.6935, allocations: 2.381 MB / 451 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01078/0.7043, allocations: 4.162 MB / 455.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02339/0.7278, allocations: 7.829 MB / 463 MB, free: 6.512 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04923/0.7771, allocations: 26.25 MB / 489.3 MB, free: 12.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.7771, allocations: 0 / 489.3 MB, free: 12.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.7772, allocations: 0 / 489.3 MB, free: 12.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0009696/0.7781, allocations: 4 kB / 489.3 MB, free: 12.73 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.07879/0.857, allocations: 15.62 MB / 0.4931 GB, free: 13.11 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.514e-05/0.8571, allocations: 8.031 kB / 0.4931 GB, free: 13.1 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008908/0.866, allocations: 1.811 MB / 0.4948 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1039/0.9699, allocations: 9.091 MB / 0.5037 GB, free: 2.277 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02893/0.9989, allocations: 7.475 MB / 0.511 GB, free: 10.79 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001996/1.001, allocations: 0.954 MB / 0.5119 GB, free: 9.844 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008045/1.009, allocations: 1.247 MB / 0.5132 GB, free: 8.609 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08794/1.097, allocations: 20.15 MB / 0.5328 GB, free: 4.426 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008794/1.098, allocations: 27.69 kB / 0.5329 GB, free: 4.398 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005316/1.103, allocations: 0.5182 MB / 0.5334 GB, free: 3.895 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001341/1.105, allocations: 0.7255 MB / 0.5341 GB, free: 3.168 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5609/1.666, allocations: 18.97 MB / 0.5526 GB, free: 137 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1564/1.822, allocations: 63.4 MB / 0.6145 GB, free: 86.68 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03568/1.858, allocations: 56.98 MB / 0.6702 GB, free: 22.82 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00737/1.865, allocations: 4.121 MB / 0.6742 GB, free: 18.68 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02136/1.887, allocations: 11.4 MB / 0.6853 GB, free: 7.266 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.16e-05/1.887, allocations: 69.31 kB / 0.6854 GB, free: 7.188 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 6.422e-06/1.887, allocations: 0 / 0.6854 GB, free: 7.188 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.04239/1.929, allocations: 18.12 MB / 0.7031 GB, free: 4.938 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.839e-05/1.929, allocations: 94.47 kB / 0.7032 GB, free: 4.832 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2567/2.186, allocations: 5.458 MB / 0.7085 GB, free: 146.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008587/2.187, allocations: 87.27 kB / 0.7086 GB, free: 146.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005941/2.193, allocations: 5.885 MB / 0.7143 GB, free: 144.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002309/2.195, allocations: 1.373 MB / 0.7157 GB, free: 143.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003088/2.198, allocations: 1.507 MB / 0.7171 GB, free: 142.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.031e-05/2.198, allocations: 304 kB / 0.7174 GB, free: 142.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006448/2.205, allocations: 3.084 MB / 0.7204 GB, free: 141.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009052/2.214, allocations: 6.758 MB / 0.727 GB, free: 135.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01263/2.227, allocations: 10.59 MB / 0.7374 GB, free: 127.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001741/2.227, allocations: 35.59 kB / 0.7374 GB, free: 127.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02036/2.247, allocations: 10.8 MB / 0.748 GB, free: 122.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001797/2.248, allocations: 60.5 kB / 0.748 GB, free: 122.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002994/2.248, allocations: 123.3 kB / 0.7481 GB, free: 122.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002947/2.251, allocations: 0.9821 MB / 0.7491 GB, free: 122.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00701/2.258, allocations: 1.815 MB / 0.7509 GB, free: 122.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01188/2.27, allocations: 10.24 MB / 0.7609 GB, free: 115.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007227/2.277, allocations: 440.8 kB / 0.7613 GB, free: 115.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001798/2.279, allocations: 422.6 kB / 0.7617 GB, free: 115.1 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01327/2.292, allocations: 4.452 MB / 0.7661 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002798/2.295, allocations: 0.5483 MB / 0.7666 GB, free: 112.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02036/2.315, allocations: 6.526 MB / 0.773 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.72e-05/2.315, allocations: 40 kB / 0.773 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-05/2.316, allocations: 9.812 kB / 0.773 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-05/2.316, allocations: 19.5 kB / 0.773 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05412/2.37, allocations: 15.96 MB / 0.7886 GB, free: 93.64 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-05/2.37, allocations: 0 / 0.7886 GB, free: 93.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006355/2.376, allocations: 0.7571 MB / 0.7894 GB, free: 92.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004052/2.38, allocations: 0.7923 MB / 0.7901 GB, free: 92.07 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000659/2.381, allocations: 91.97 kB / 0.7902 GB, free: 91.98 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01552/2.397, allocations: 9.354 MB / 0.7994 GB, free: 82.23 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/2.397, allocations: 4 kB / 0.7994 GB, free: 82.23 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01689/2.414, allocations: 9.53 MB / 0.8087 GB, free: 72.59 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003362/2.417, allocations: 1.076 MB / 0.8097 GB, free: 71.49 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009766/2.418, allocations: 68.62 kB / 0.8098 GB, free: 71.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002522/2.42, allocations: 223.8 kB / 0.81 GB, free: 71.21 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006441/2.421, allocations: 270.4 kB / 0.8102 GB, free: 70.95 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002624/2.421, allocations: 116 kB / 0.8104 GB, free: 70.83 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005729/2.427, allocations: 3.603 MB / 0.8139 GB, free: 67.25 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.91e-07/2.427, allocations: 0 / 0.8139 GB, free: 67.25 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01003/2.437, allocations: 1.979 MB / 0.8158 GB, free: 65.28 MB / 462.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%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01417/2.451, allocations: 10.24 MB / 0.8258 GB, free: 54.93 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02931/2.481, allocations: 13.52 MB / 0.839 GB, free: 41.38 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/2.481, allocations: 0 / 0.839 GB, free: 41.38 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007036/2.488, allocations: 3.533 MB / 0.8425 GB, free: 37.78 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009725/2.498, allocations: 1.321 MB / 0.8438 GB, free: 36.47 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3469/2.845, allocations: 87.94 MB / 0.9296 GB, free: 104.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009647/2.854, allocations: 7.599 MB / 0.9371 GB, free: 100.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007307/2.862, allocations: 2.352 MB / 0.9394 GB, free: 98.61 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006772/2.868, allocations: 4.518 MB / 0.9438 GB, free: 94.09 MB / 462.1 MB Notification: Performance of SimCode: time 8.32e-07/2.868, allocations: 0 / 0.9438 GB, free: 94.09 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4632/3.332, allocations: 155.8 MB / 1.096 GB, free: 128.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.54/23.87, allocations: 6.469 kB / 1.096 GB, free: 128.1 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches