Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.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_NoLoad,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_NoLoad",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.001541/0.001541, allocations: 104.2 kB / 17.58 MB, free: 5.418 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.001693/0.001693, allocations: 191.9 kB / 18.51 MB, free: 4.504 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.399/1.399, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001897/0.001897, allocations: 52.14 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09246/0.09437, allocations: 46.62 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad): time 0.0108/0.1052, allocations: 8.972 MB / 336.4 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006634/0.1119, allocations: 3.202 MB / 339.6 MB, free: 8.141 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002086/0.114, allocations: 43.81 kB / 339.6 MB, free: 8.098 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002431/0.1166, allocations: 0.6678 MB / 340.3 MB, free: 7.426 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003415/0.12, allocations: 0.695 MB / 341 MB, free: 6.727 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001066/0.1211, allocations: 331.4 kB / 341.3 MB, free: 6.402 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003096/0.1242, allocations: 2.097 MB / 343.4 MB, free: 4.297 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00197/0.1262, allocations: 1.398 MB / 344.8 MB, free: 2.852 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001405/0.1276, allocations: 0.907 MB / 345.7 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001758/0.1294, allocations: 1.129 MB / 346.8 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005147/0.1299, allocations: 232 kB / 347 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008766/0.1308, allocations: 315.8 kB / 347.4 MB, free: 280 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008164/0.1316, allocations: 0.6779 MB / 348 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001605/0.1332, allocations: 1.077 MB / 349.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002907/0.1362, allocations: 3.076 MB / 352.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1362, allocations: 0 / 352.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1362, allocations: 4 kB / 352.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.635e-05/0.1363, allocations: 0 / 352.2 MB, free: 11.42 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.004641/0.1409, allocations: 2.261 MB / 354.4 MB, free: 9.102 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.141, allocations: 8.031 kB / 354.5 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002693/0.1412, allocations: 240.3 kB / 354.7 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006167/0.1419, allocations: 226.5 kB / 354.9 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001812/0.1437, allocations: 1.157 MB / 356.1 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.444e-05/0.1438, allocations: 115.2 kB / 356.2 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002364/0.144, allocations: 155.9 kB / 356.3 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002987/0.147, allocations: 2.004 MB / 358.3 MB, free: 5.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.417e-05/0.1471, allocations: 3.906 kB / 358.3 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001389/0.1472, allocations: 67.98 kB / 358.4 MB, free: 5.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.961e-05/0.1473, allocations: 78.91 kB / 358.5 MB, free: 4.941 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003332/0.1507, allocations: 1.647 MB / 360.1 MB, free: 3.289 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01398/0.1647, allocations: 6.952 MB / 367.1 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001289/0.1661, allocations: 440.9 kB / 367.5 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006393/0.1667, allocations: 266 kB / 367.8 MB, free: 11.31 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000361/0.1671, allocations: 113.5 kB / 367.9 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.238e-05/0.1672, allocations: 42.98 kB / 367.9 MB, free: 11.13 MB / 318.1 MB Notification: Performance of pre-optimization done (n=47): time 4.408e-06/0.1672, allocations: 0 / 367.9 MB, free: 11.13 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.01071/0.178, allocations: 3.292 MB / 371.2 MB, free: 7.754 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003595/0.1816, allocations: 2.326 MB / 373.5 MB, free: 5.254 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004721/0.1864, allocations: 1.619 MB / 375.2 MB, free: 3.625 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001387/0.1865, allocations: 37.7 kB / 375.2 MB, free: 3.582 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001198/0.1877, allocations: 1.022 MB / 376.2 MB, free: 2.547 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003533/0.1881, allocations: 236.8 kB / 376.5 MB, free: 2.312 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007071/0.1888, allocations: 319.1 kB / 376.8 MB, free: 1.992 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.189, allocations: 305.1 kB / 377.1 MB, free: 1.691 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001284/0.1903, allocations: 0.5271 MB / 377.6 MB, free: 1.164 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2051/0.3954, allocations: 1.457 MB / 379 MB, free: 50.74 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002716/0.3982, allocations: 2.139 MB / 381.2 MB, free: 49.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.527e-05/0.3982, allocations: 9.5 kB / 381.2 MB, free: 49.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.004307/0.4026, allocations: 2.16 MB / 383.4 MB, free: 48.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.806e-05/0.4026, allocations: 19.22 kB / 383.4 MB, free: 48.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.311e-05/0.4027, allocations: 33 kB / 383.4 MB, free: 48.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006153/0.4033, allocations: 224.3 kB / 383.6 MB, free: 48.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001261/0.4046, allocations: 396.5 kB / 384 MB, free: 48.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001716/0.4063, allocations: 1.85 MB / 385.9 MB, free: 47.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/0.4079, allocations: 137.7 kB / 386 MB, free: 47.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001469/0.408, allocations: 96.05 kB / 386.1 MB, free: 47.17 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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 (204): * Single equations (assignments): 201 * 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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001064/0.4091, allocations: 0.59 MB / 386.7 MB, free: 46.82 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003045/0.4094, allocations: 149.5 kB / 386.8 MB, free: 46.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002108/0.4115, allocations: 1.115 MB / 387.9 MB, free: 46.38 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.4116, allocations: 6.781 kB / 387.9 MB, free: 46.38 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.4116, allocations: 1.844 kB / 388 MB, free: 46.38 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.4116, allocations: 3.375 kB / 388 MB, free: 46.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006189/0.4178, allocations: 3.391 MB / 391.3 MB, free: 44.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-05/0.4178, allocations: 4.312 kB / 391.3 MB, free: 44.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005005/0.4183, allocations: 112 kB / 391.5 MB, free: 44.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007026/0.4191, allocations: 224.5 kB / 391.7 MB, free: 44.71 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.148e-05/0.4191, allocations: 19.25 kB / 391.7 MB, free: 44.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003272/0.4224, allocations: 4.07 MB / 395.8 MB, free: 41.39 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001716/0.4241, allocations: 2.173 MB / 397.9 MB, free: 39.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00243/0.4266, allocations: 1.751 MB / 399.7 MB, free: 38.6 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005191/0.4271, allocations: 305.4 kB / 400 MB, free: 38.38 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001733/0.4273, allocations: 15.53 kB / 400 MB, free: 38.37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006724/0.428, allocations: 55.41 kB / 400.1 MB, free: 38.36 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.4281, allocations: 61.7 kB / 400.1 MB, free: 38.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.696e-05/0.4282, allocations: 27.33 kB / 400.1 MB, free: 38.33 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001369/0.4295, allocations: 1.068 MB / 401.2 MB, free: 37.92 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.12e-07/0.4296, allocations: 0 / 401.2 MB, free: 37.92 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001891/0.4315, allocations: 387.5 kB / 401.6 MB, free: 37.88 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.x) * 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 (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002333/0.4338, allocations: 2.358 MB / 404 MB, free: 36.38 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002225/0.436, allocations: 1.706 MB / 405.7 MB, free: 35.44 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.4361, allocations: 3.938 kB / 405.7 MB, free: 35.44 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.4371, allocations: 0.8517 MB / 406.5 MB, free: 34.64 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001635/0.4387, allocations: 410.8 kB / 406.9 MB, free: 34.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01559/0.4543, allocations: 16.73 MB / 423.6 MB, free: 15.75 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007822/0.4552, allocations: 1.476 MB / 425.1 MB, free: 14.25 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001/0.4562, allocations: 350 kB / 425.5 MB, free: 13.9 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006389/0.4568, allocations: 0.6164 MB / 426.1 MB, free: 13.28 MB / 318.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4568, allocations: 0 / 426.1 MB, free: 13.28 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07685/0.5337, allocations: 35.62 MB / 461.7 MB, free: 9.543 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.81, allocations: 16.31 kB / 461.7 MB, free: 9.527 MB / 350.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad_res.csv --start-time 0 --stop-time 0.04 --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_NoLoad.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad_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_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches