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.001279/0.001279, allocations: 113.2 kB / 17.73 MB, free: 5.355 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.001237/0.001237, allocations: 184.1 kB / 18.66 MB, free: 4.434 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.353/1.353, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001664/0.001664, allocations: 55.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08355/0.08522, allocations: 46.62 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad): time 0.1796/0.2648, allocations: 8.968 MB / 383.6 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005526/0.2704, allocations: 3.208 MB / 386.8 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001101/0.2715, allocations: 39.56 kB / 386.9 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001834/0.2734, allocations: 0.6695 MB / 387.5 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002125/0.2755, allocations: 0.6954 MB / 388.2 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008869/0.2764, allocations: 329.7 kB / 388.6 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002456/0.2789, allocations: 2.097 MB / 390.6 MB, free: 4.805 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001554/0.2805, allocations: 1.406 MB / 392.1 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001443/0.2819, allocations: 0.9034 MB / 393 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001512/0.2835, allocations: 1.125 MB / 394.1 MB, free: 3.238 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003571/0.2838, allocations: 231.7 kB / 394.3 MB, free: 3.238 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007244/0.2846, allocations: 319.3 kB / 394.6 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006034/0.2852, allocations: 0.6823 MB / 395.3 MB, free: 2.848 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001069/0.2863, allocations: 1.079 MB / 396.4 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003465/0.2897, allocations: 3.122 MB / 399.5 MB, free: 1.039 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2897, allocations: 0 / 399.5 MB, free: 1.039 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2898, allocations: 1.781 kB / 399.5 MB, free: 1.039 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.108e-05/0.2898, allocations: 4 kB / 399.5 MB, free: 1.035 MB / 318.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.004565/0.2944, allocations: 2.319 MB / 401.8 MB, free: 15.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.2945, allocations: 9.625 kB / 401.8 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003392/0.2948, allocations: 239.4 kB / 402.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006746/0.2955, allocations: 235.1 kB / 402.3 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002101/0.2976, allocations: 1.172 MB / 403.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/0.2977, allocations: 114.1 kB / 403.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002635/0.298, allocations: 163.4 kB / 403.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003808/0.3018, allocations: 2.006 MB / 405.7 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.149e-05/0.3019, allocations: 6.609 kB / 405.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000158/0.3021, allocations: 65.39 kB / 405.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.584e-05/0.3022, allocations: 78.62 kB / 405.9 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002924/0.3051, allocations: 1.649 MB / 407.5 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0111/0.3162, allocations: 6.913 MB / 414.5 MB, free: 6.547 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008334/0.3171, allocations: 450.6 kB / 414.9 MB, free: 6.328 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004083/0.3175, allocations: 259.9 kB / 415.2 MB, free: 6.207 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002302/0.3178, allocations: 111.6 kB / 415.3 MB, free: 6.105 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/0.3178, allocations: 45.73 kB / 415.3 MB, free: 6.055 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 2.414e-06/0.3178, allocations: 0 / 415.3 MB, free: 6.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=63): time 0.008111/0.326, allocations: 3.313 MB / 418.6 MB, free: 3.398 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002797/0.3288, allocations: 2.345 MB / 421 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003038/0.3318, allocations: 1.62 MB / 422.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001125/0.332, allocations: 37.7 kB / 422.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009919/0.333, allocations: 1.053 MB / 423.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002947/0.3333, allocations: 246 kB / 423.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005301/0.3338, allocations: 327.4 kB / 424.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.334, allocations: 301.1 kB / 424.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009313/0.3349, allocations: 0.5153 MB / 425 MB, free: 12.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001796/0.3367, allocations: 1.468 MB / 426.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002917/0.3397, allocations: 2.141 MB / 428.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-05/0.3397, allocations: 8 kB / 428.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.004238/0.3439, allocations: 2.166 MB / 430.8 MB, free: 6.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.781e-05/0.344, allocations: 24.03 kB / 430.8 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-05/0.3441, allocations: 32 kB / 430.9 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005998/0.3447, allocations: 226.3 kB / 431.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.346, allocations: 391.3 kB / 431.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002013/0.348, allocations: 1.852 MB / 433.3 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001669/0.3497, allocations: 147.6 kB / 433.5 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002091/0.3499, allocations: 95.98 kB / 433.6 MB, free: 3.129 MB / 350.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.001194/0.3511, allocations: 0.5828 MB / 434.2 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004173/0.3515, allocations: 159 kB / 434.3 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002395/0.3539, allocations: 1.114 MB / 435.4 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.354, allocations: 8 kB / 435.4 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.354, allocations: 0 / 435.4 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.354, allocations: 3.984 kB / 435.4 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006549/0.3605, allocations: 3.398 MB / 438.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.467e-06/0.3606, allocations: 4 kB / 438.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004554/0.361, allocations: 107.9 kB / 438.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006827/0.3617, allocations: 230.8 kB / 439.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.555e-05/0.3618, allocations: 23.98 kB / 439.2 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004661/0.3665, allocations: 4.046 MB / 443.2 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002425/0.3689, allocations: 2.173 MB / 445.4 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00306/0.372, allocations: 1.756 MB / 447.2 MB, free: 4.809 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008453/0.3729, allocations: 312 kB / 447.5 MB, free: 4.484 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004038/0.3733, allocations: 27.92 kB / 447.5 MB, free: 4.457 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008747/0.3742, allocations: 43.95 kB / 447.5 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001687/0.3744, allocations: 63.86 kB / 447.6 MB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.868e-05/0.3744, allocations: 27.94 kB / 447.6 MB, free: 4.324 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002094/0.3765, allocations: 1.07 MB / 448.7 MB, free: 3.258 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3765, allocations: 0 / 448.7 MB, free: 3.258 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001948/0.3785, allocations: 387.9 kB / 449.1 MB, free: 2.879 MB / 366.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.003518/0.382, allocations: 2.366 MB / 451.4 MB, free: 424 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002896/0.3849, allocations: 1.613 MB / 453.1 MB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.662e-05/0.385, allocations: 1.125 kB / 453.1 MB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001489/0.3865, allocations: 0.8589 MB / 453.9 MB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002524/0.389, allocations: 410.6 kB / 454.3 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02698/0.416, allocations: 15.3 MB / 469.6 MB, free: 12.9 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001663/0.4177, allocations: 1.465 MB / 471.1 MB, free: 11.4 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001194/0.4189, allocations: 354 kB / 471.4 MB, free: 11.05 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001037/0.42, allocations: 0.6164 MB / 472 MB, free: 10.43 MB / 398.1 MB Notification: Performance of SimCode: time 1.123e-06/0.42, allocations: 4 kB / 472 MB, free: 10.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08694/0.507, allocations: 36.33 MB / 0.4965 GB, free: 5.988 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.57/15.07, allocations: 8 kB / 0.4965 GB, free: 5.98 MB / 430.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