Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 120.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 186.9 kB / 20.73 MB, free: 2.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 55.92 kB / 365.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1091, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01271/0.1218, allocations: 9.027 MB / 426.8 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007124/0.1289, allocations: 3.182 MB / 430 MB, free: 380 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001949/0.1309, allocations: 39.88 kB / 430 MB, free: 340 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002647/0.1335, allocations: 0.7146 MB / 430.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003219/0.1367, allocations: 0.734 MB / 431.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001311/0.1381, allocations: 339.4 kB / 431.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0034/0.1415, allocations: 2.101 MB / 433.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001997/0.1434, allocations: 1.016 MB / 434.9 MB, free: 11.36 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00172/0.1452, allocations: 0.911 MB / 435.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002076/0.1472, allocations: 1.164 MB / 437 MB, free: 9.277 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006726/0.1479, allocations: 228 kB / 437.2 MB, free: 9.055 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001216/0.1491, allocations: 323.8 kB / 437.5 MB, free: 8.738 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001131/0.1503, allocations: 0.6895 MB / 438.2 MB, free: 8.047 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001941/0.1522, allocations: 1.077 MB / 439.3 MB, free: 6.965 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00447/0.1567, allocations: 3.118 MB / 442.4 MB, free: 3.836 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1567, allocations: 0 / 442.4 MB, free: 3.836 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1567, allocations: 0 / 442.4 MB, free: 3.836 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001118/0.1568, allocations: 0 / 442.4 MB, free: 3.836 MB / 366.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.006105/0.1629, allocations: 2.316 MB / 444.7 MB, free: 1.461 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.1629, allocations: 12.03 kB / 444.8 MB, free: 1.449 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006239/0.1636, allocations: 236.3 kB / 445 MB, free: 1.207 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008344/0.1644, allocations: 239.5 kB / 445.2 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2067/0.3711, allocations: 1.22 MB / 446.4 MB, free: 29.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.747e-05/0.3712, allocations: 118.8 kB / 446.6 MB, free: 29.4 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002518/0.3714, allocations: 155.9 kB / 446.7 MB, free: 29.4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003019/0.3744, allocations: 2.002 MB / 448.7 MB, free: 29.24 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.327e-05/0.3745, allocations: 9.312 kB / 448.7 MB, free: 29.24 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001259/0.3746, allocations: 60.53 kB / 448.8 MB, free: 29.24 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.941e-05/0.3747, allocations: 75.84 kB / 448.9 MB, free: 29.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00247/0.3772, allocations: 1.652 MB / 450.5 MB, free: 29.13 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01003/0.3872, allocations: 6.911 MB / 457.4 MB, free: 25.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007757/0.388, allocations: 422.4 kB / 457.8 MB, free: 25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003686/0.3883, allocations: 255.3 kB / 458.1 MB, free: 24.92 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002115/0.3885, allocations: 116.9 kB / 458.2 MB, free: 24.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.252e-05/0.3886, allocations: 37.83 kB / 458.2 MB, free: 24.78 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.235e-06/0.3886, allocations: 0 / 458.2 MB, free: 24.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.007011/0.3956, allocations: 3.319 MB / 461.5 MB, free: 23.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002022/0.3976, allocations: 2.337 MB / 463.9 MB, free: 21.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002444/0.4, allocations: 1.62 MB / 465.5 MB, free: 20.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.35e-05/0.4001, allocations: 35.89 kB / 465.5 MB, free: 20.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000549/0.4006, allocations: 1.053 MB / 466.6 MB, free: 19.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000159/0.4008, allocations: 248.3 kB / 466.8 MB, free: 19.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003605/0.4012, allocations: 325.3 kB / 467.2 MB, free: 19.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.688e-05/0.4012, allocations: 301.8 kB / 467.4 MB, free: 19.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007942/0.402, allocations: 0.5161 MB / 468 MB, free: 19.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000973/0.403, allocations: 1.468 MB / 469.4 MB, free: 17.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001917/0.4049, allocations: 2.134 MB / 471.6 MB, free: 15.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.909e-05/0.4049, allocations: 14.47 kB / 471.6 MB, free: 15.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003249/0.4082, allocations: 2.159 MB / 473.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.295e-05/0.4082, allocations: 19 kB / 473.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.652e-05/0.4082, allocations: 34.16 kB / 473.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000489/0.4087, allocations: 230 kB / 474 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.4098, allocations: 399.4 kB / 474.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001347/0.4111, allocations: 1.85 MB / 476.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001296/0.4124, allocations: 145.1 kB / 476.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001865/0.4126, allocations: 96.36 kB / 476.5 MB, free: 12.76 MB / 366.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.0007131/0.4133, allocations: 0.5903 MB / 477.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002222/0.4135, allocations: 160.1 kB / 477.2 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001705/0.4152, allocations: 1.107 MB / 478.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.4152, allocations: 8.781 kB / 478.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.4152, allocations: 2.469 kB / 478.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.4153, allocations: 7.922 kB / 478.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004683/0.4199, allocations: 3.384 MB / 481.7 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.4199, allocations: 3.938 kB / 481.8 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003606/0.4203, allocations: 103.6 kB / 481.9 MB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005728/0.4209, allocations: 234 kB / 482.1 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.774e-05/0.4209, allocations: 19.88 kB / 482.1 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002801/0.4237, allocations: 4.056 MB / 486.2 MB, free: 5.559 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00153/0.4252, allocations: 2.171 MB / 488.3 MB, free: 3.562 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002128/0.4274, allocations: 1.752 MB / 490.1 MB, free: 2.273 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005439/0.4279, allocations: 308.6 kB / 490.4 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.4281, allocations: 16 kB / 490.4 MB, free: 1.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005889/0.4287, allocations: 51.94 kB / 490.4 MB, free: 1.887 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001476/0.4288, allocations: 63.86 kB / 490.5 MB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.534e-05/0.4289, allocations: 26.25 kB / 490.5 MB, free: 1.801 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001206/0.4301, allocations: 1.07 MB / 491.6 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4301, allocations: 0 / 491.6 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001562/0.4317, allocations: 383.9 kB / 492 MB, free: 368 kB / 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.003054/0.4347, allocations: 2.369 MB / 494.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002873/0.4376, allocations: 1.562 MB / 495.9 MB, free: 12.28 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.4376, allocations: 0 / 495.9 MB, free: 12.28 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001306/0.4389, allocations: 0.8309 MB / 496.7 MB, free: 11.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001983/0.4409, allocations: 418.2 kB / 497.2 MB, free: 11.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02265/0.4635, allocations: 15.29 MB / 0.5004 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001273/0.4648, allocations: 1.461 MB / 0.5019 GB, free: 9.008 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001115/0.4659, allocations: 356.5 kB / 0.5022 GB, free: 8.664 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008472/0.4668, allocations: 0.6203 MB / 0.5028 GB, free: 8.047 MB / 398.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4668, allocations: 0 / 0.5028 GB, free: 8.047 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1078/0.5746, allocations: 36.57 MB / 0.5385 GB, free: 3.875 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.15/15.73, allocations: 3.75 kB / 0.5385 GB, free: 3.871 MB / 430.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.04 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.09827035991475]