Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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.001619/0.001619, allocations: 104.9 kB / 17.58 MB, free: 5.406 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.001898/0.001898, allocations: 191.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 1.56/1.56, allocations: 205.1 MB / 224.4 MB, free: 12.28 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.001439/0.001439, allocations: 52.16 kB / 280.8 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08195/0.0834, allocations: 46.63 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01292/0.09636, allocations: 10.9 MB / 338.3 MB, free: 9.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007245/0.1037, allocations: 3.669 MB / 341.9 MB, free: 5.746 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001387/0.1051, allocations: 59.75 kB / 342 MB, free: 5.688 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001898/0.107, allocations: 0.8189 MB / 342.8 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002267/0.1093, allocations: 0.858 MB / 343.7 MB, free: 4 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009379/0.1103, allocations: 463.3 kB / 344.1 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003132/0.1134, allocations: 2.939 MB / 347.1 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002997/0.1164, allocations: 2.675 MB / 349.7 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001793/0.1182, allocations: 1.363 MB / 351.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002126/0.1204, allocations: 1.755 MB / 352.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005566/0.1209, allocations: 372 kB / 353.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009242/0.1219, allocations: 475.8 kB / 353.7 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001025/0.1229, allocations: 1.075 MB / 354.8 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0017/0.1246, allocations: 1.676 MB / 356.4 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004383/0.129, allocations: 4.813 MB / 361.3 MB, free: 2.312 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1291, allocations: 0 / 361.3 MB, free: 2.312 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1291, allocations: 0 / 361.3 MB, free: 2.312 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.833e-05/0.1291, allocations: 0 / 361.3 MB, free: 2.312 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: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.006417/0.1356, allocations: 3.383 MB / 364.6 MB, free: 14.86 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.1356, allocations: 11.89 kB / 364.7 MB, free: 14.85 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004636/0.1361, allocations: 363 kB / 365 MB, free: 14.49 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008103/0.1369, allocations: 337.1 kB / 365.3 MB, free: 14.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002657/0.1396, allocations: 1.702 MB / 367 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001823/0.1398, allocations: 193.2 kB / 367.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003436/0.1401, allocations: 251.9 kB / 367.5 MB, free: 11.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005133/0.1453, allocations: 3.279 MB / 370.8 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.2e-05/0.1453, allocations: 11.94 kB / 370.8 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002276/0.1456, allocations: 104 kB / 370.9 MB, free: 8.488 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001205/0.1457, allocations: 124.9 kB / 371 MB, free: 8.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004535/0.1502, allocations: 2.744 MB / 373.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1709/0.3212, allocations: 10.52 MB / 384.2 MB, free: 45.96 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/0.323, allocations: 1.354 MB / 385.6 MB, free: 45.63 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001247/0.3242, allocations: 0.7722 MB / 386.4 MB, free: 45.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002692/0.3245, allocations: 208.3 kB / 386.6 MB, free: 45.24 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.3246, allocations: 44.03 kB / 386.6 MB, free: 45.2 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.096e-06/0.3246, allocations: 1.156 kB / 386.6 MB, free: 45.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01509/0.3397, allocations: 7.035 MB / 393.7 MB, free: 42.68 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.023e-05/0.3397, allocations: 69.78 kB / 393.7 MB, free: 42.61 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002315/0.342, allocations: 1.788 MB / 395.5 MB, free: 41.95 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.025e-05/0.3421, allocations: 45.7 kB / 395.6 MB, free: 41.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006126/0.3427, allocations: 1.275 MB / 396.8 MB, free: 40.92 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002361/0.343, allocations: 437.7 kB / 397.3 MB, free: 40.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003896/0.3434, allocations: 293.3 kB / 397.5 MB, free: 40.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.077e-05/0.3434, allocations: 305.1 kB / 397.8 MB, free: 40.13 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001016/0.3445, allocations: 0.7697 MB / 398.6 MB, free: 39.75 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00113/0.3456, allocations: 1.302 MB / 399.9 MB, free: 38.67 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002319/0.3479, allocations: 2.211 MB / 402.1 MB, free: 37.12 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/0.348, allocations: 3.906 kB / 402.1 MB, free: 37.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003439/0.3514, allocations: 2.478 MB / 404.6 MB, free: 35.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/0.3515, allocations: 15.06 kB / 404.6 MB, free: 35.85 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.3515, allocations: 18.44 kB / 404.6 MB, free: 35.85 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005552/0.352, allocations: 239.9 kB / 404.9 MB, free: 35.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001378/0.3534, allocations: 417.1 kB / 405.3 MB, free: 35.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00218/0.3556, allocations: 3.238 MB / 408.5 MB, free: 32.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001314/0.357, allocations: 133.1 kB / 408.7 MB, free: 32.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/0.3571, allocations: 71.36 kB / 408.7 MB, free: 32.41 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001115/0.3582, allocations: 0.8199 MB / 409.5 MB, free: 31.61 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002584/0.3585, allocations: 189.8 kB / 409.7 MB, free: 31.43 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002836/0.3613, allocations: 2.039 MB / 411.8 MB, free: 29.36 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.3613, allocations: 12 kB / 411.8 MB, free: 29.35 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3613, allocations: 0 / 411.8 MB, free: 29.35 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.3614, allocations: 7.922 kB / 411.8 MB, free: 29.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006113/0.3675, allocations: 4.751 MB / 416.5 MB, free: 24.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/0.3675, allocations: 7.984 kB / 416.5 MB, free: 24.51 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009731/0.3685, allocations: 259.6 kB / 416.8 MB, free: 24.26 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004536/0.369, allocations: 207.5 kB / 417 MB, free: 24.04 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.677e-05/0.369, allocations: 31.88 kB / 417 MB, free: 24.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0018/0.3708, allocations: 3.218 MB / 420.2 MB, free: 20.53 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3709, allocations: 3.938 kB / 420.3 MB, free: 20.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003578/0.3744, allocations: 3.118 MB / 423.4 MB, free: 17.35 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006158/0.3751, allocations: 434.6 kB / 423.8 MB, free: 16.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002172/0.3753, allocations: 24 kB / 423.8 MB, free: 16.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008685/0.3762, allocations: 91.88 kB / 423.9 MB, free: 16.79 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001561/0.3763, allocations: 80.89 kB / 424 MB, free: 16.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.269e-05/0.3764, allocations: 35.98 kB / 424 MB, free: 16.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001402/0.3778, allocations: 1.216 MB / 425.2 MB, free: 15.47 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3778, allocations: 4 kB / 425.2 MB, free: 15.47 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00136/0.3792, allocations: 490.2 kB / 425.7 MB, free: 14.99 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.003824/0.383, allocations: 3.767 MB / 429.5 MB, free: 11.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004187/0.3872, allocations: 2.976 MB / 432.5 MB, free: 8.133 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.3872, allocations: 4 kB / 432.5 MB, free: 8.129 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001413/0.3887, allocations: 1.331 MB / 433.8 MB, free: 6.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002053/0.3907, allocations: 0.4906 MB / 434.3 MB, free: 6.258 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02674/0.4175, allocations: 20.66 MB / 454.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001737/0.4192, allocations: 2.018 MB / 457 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001476/0.4207, allocations: 0.496 MB / 457.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001273/0.422, allocations: 1.007 MB / 458.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.422, allocations: 0 / 458.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1437/0.5657, allocations: 44.98 MB / 0.4917 GB, free: 15.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.08/10.65, allocations: 8.188 kB / 0.4917 GB, free: 15.26 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_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_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches