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.001903/0.001903, allocations: 111.8 kB / 18.49 MB, free: 4.562 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.002105/0.002105, allocations: 194.5 kB / 21.43 MB, free: 1.633 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.405/1.405, allocations: 225.6 MB / 249.8 MB, free: 3.621 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 47.92 kB / 366.4 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09792/0.09953, allocations: 52.14 MB / 418.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01201/0.1115, allocations: 9.037 MB / 427.5 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006907/0.1184, allocations: 3.17 MB / 430.7 MB, free: 456 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001604/0.1201, allocations: 51.69 kB / 430.7 MB, free: 404 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002297/0.1224, allocations: 0.7224 MB / 431.5 MB, free: 15.67 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003001/0.1254, allocations: 0.734 MB / 432.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001268/0.1266, allocations: 319.5 kB / 432.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003311/0.1299, allocations: 2.111 MB / 434.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001942/0.1319, allocations: 1.019 MB / 435.6 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00186/0.1337, allocations: 0.9305 MB / 436.6 MB, free: 10.49 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002034/0.1358, allocations: 1.164 MB / 437.7 MB, free: 9.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005793/0.1363, allocations: 232 kB / 438 MB, free: 9.094 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00108/0.1374, allocations: 315.9 kB / 438.3 MB, free: 8.785 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00106/0.1385, allocations: 0.6816 MB / 439 MB, free: 8.102 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001936/0.1404, allocations: 1.089 MB / 440 MB, free: 7.008 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004033/0.1445, allocations: 3.118 MB / 443.2 MB, free: 3.879 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.1445, allocations: 0 / 443.2 MB, free: 3.879 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1445, allocations: 0 / 443.2 MB, free: 3.879 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001054/0.1446, allocations: 4 kB / 443.2 MB, free: 3.875 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.005694/0.1503, allocations: 2.31 MB / 445.5 MB, free: 1.504 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.1503, allocations: 12.03 kB / 445.5 MB, free: 1.492 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.763e-05/0.1504, allocations: 47.27 kB / 445.5 MB, free: 1.445 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004695/0.1508, allocations: 232.3 kB / 445.8 MB, free: 1.207 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007927/0.1516, allocations: 235.6 kB / 446 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1917/0.3434, allocations: 1.233 MB / 447.2 MB, free: 28.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-05/0.3435, allocations: 115.2 kB / 447.3 MB, free: 28.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002656/0.3437, allocations: 158 kB / 447.5 MB, free: 28.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002817/0.3465, allocations: 1.999 MB / 449.5 MB, free: 28.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.537e-05/0.3466, allocations: 8.656 kB / 449.5 MB, free: 28.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001291/0.3467, allocations: 60.47 kB / 449.6 MB, free: 28.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.437e-05/0.3468, allocations: 80.34 kB / 449.6 MB, free: 28.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002348/0.3491, allocations: 1.646 MB / 451.3 MB, free: 28.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009488/0.3586, allocations: 6.903 MB / 458.2 MB, free: 24.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007685/0.3594, allocations: 428.7 kB / 458.6 MB, free: 24.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003558/0.3597, allocations: 248.8 kB / 458.9 MB, free: 24.53 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001981/0.3599, allocations: 118.1 kB / 459 MB, free: 24.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/0.36, allocations: 39.48 kB / 459 MB, free: 24.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.675e-06/0.36, allocations: 0 / 459 MB, free: 24.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.006944/0.3669, allocations: 3.324 MB / 462.3 MB, free: 23.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001993/0.3689, allocations: 2.332 MB / 464.7 MB, free: 21.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002355/0.3713, allocations: 1.625 MB / 466.3 MB, free: 20.42 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001021/0.3714, allocations: 40.7 kB / 466.3 MB, free: 20.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005412/0.3719, allocations: 1.048 MB / 467.4 MB, free: 19.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.3721, allocations: 247.7 kB / 467.6 MB, free: 19.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003854/0.3725, allocations: 325.5 kB / 467.9 MB, free: 19.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.802e-05/0.3725, allocations: 303.2 kB / 468.2 MB, free: 18.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007454/0.3733, allocations: 0.5153 MB / 468.7 MB, free: 18.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009513/0.3742, allocations: 1.463 MB / 470.2 MB, free: 17.35 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001842/0.3761, allocations: 2.138 MB / 472.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.07e-05/0.3761, allocations: 9.688 kB / 472.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003272/0.3793, allocations: 2.167 MB / 474.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.485e-05/0.3794, allocations: 19.28 kB / 474.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.736e-05/0.3794, allocations: 32.59 kB / 474.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005126/0.3799, allocations: 232.9 kB / 474.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.381, allocations: 393.1 kB / 475.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001244/0.3822, allocations: 1.852 MB / 477 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.3836, allocations: 141.6 kB / 477.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/0.3838, allocations: 97.11 kB / 477.3 MB, free: 12.54 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.0007783/0.3845, allocations: 0.5915 MB / 477.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003/0.3848, allocations: 159.7 kB / 478 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001725/0.3866, allocations: 1.112 MB / 479.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.565e-06/0.3866, allocations: 6.312 kB / 479.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.3866, allocations: 1.125 kB / 479.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.3866, allocations: 7.922 kB / 479.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004617/0.3912, allocations: 3.379 MB / 482.5 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.3912, allocations: 8.5 kB / 482.5 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003678/0.3916, allocations: 112 kB / 482.6 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005179/0.3921, allocations: 227.7 kB / 482.9 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.777e-05/0.3921, allocations: 15.88 kB / 482.9 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002748/0.3949, allocations: 4.057 MB / 486.9 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001485/0.3964, allocations: 2.163 MB / 489.1 MB, free: 3.348 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002081/0.3985, allocations: 1.749 MB / 490.8 MB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005052/0.399, allocations: 311.5 kB / 491.2 MB, free: 1.652 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001616/0.3991, allocations: 23.98 kB / 491.2 MB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006287/0.3997, allocations: 48.02 kB / 491.2 MB, free: 1.582 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.3999, allocations: 64.45 kB / 491.3 MB, free: 1.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-05/0.3999, allocations: 27.94 kB / 491.3 MB, free: 1.492 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001217/0.4011, allocations: 1.074 MB / 492.4 MB, free: 432 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4011, allocations: 0 / 492.4 MB, free: 432 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.001474/0.4026, allocations: 383.9 kB / 492.8 MB, free: 48 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.003128/0.4057, allocations: 2.371 MB / 495.1 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002675/0.4084, allocations: 1.566 MB / 496.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.4084, allocations: 4 kB / 496.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001312/0.4097, allocations: 0.8167 MB / 497.5 MB, free: 11.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001994/0.4117, allocations: 418.8 kB / 497.9 MB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02233/0.434, allocations: 15.29 MB / 0.5012 GB, free: 10.19 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/0.4353, allocations: 1.469 MB / 0.5026 GB, free: 8.688 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001033/0.4363, allocations: 352.1 kB / 0.503 GB, free: 8.348 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008605/0.4372, allocations: 0.6197 MB / 0.5036 GB, free: 7.734 MB / 398.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4372, allocations: 0 / 0.5036 GB, free: 7.734 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08071/0.5179, allocations: 36.6 MB / 0.5393 GB, free: 3.555 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.32/15.83, allocations: 14.8 kB / 0.5393 GB, free: 3.543 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/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/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.32347403699532]