Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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.001301/0.001301, allocations: 124.2 kB / 17.78 MB, free: 5.121 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.001295/0.001295, allocations: 189.2 kB / 20.73 MB, free: 2.184 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.393/1.393, allocations: 225.6 MB / 249.1 MB, free: 3.617 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.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 51.92 kB / 365.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1085, allocations: 52.14 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.01049/0.119, allocations: 8.12 MB / 425.9 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005123/0.1241, allocations: 2.641 MB / 428.5 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001038/0.1252, allocations: 27.88 kB / 428.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001725/0.1269, allocations: 0.5754 MB / 429.2 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001494/0.1284, allocations: 0.4886 MB / 429.6 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005989/0.129, allocations: 247.7 kB / 429.9 MB, free: 472 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002064/0.131, allocations: 1.474 MB / 431.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006801/0.1317, allocations: 398.7 kB / 431.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008821/0.1326, allocations: 0.5603 MB / 432.3 MB, free: 14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007648/0.1334, allocations: 0.6028 MB / 432.9 MB, free: 13.4 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001864/0.1336, allocations: 136 kB / 433 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003513/0.1339, allocations: 176 kB / 433.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002354/0.1341, allocations: 282.9 kB / 433.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006623/0.1348, allocations: 0.6609 MB / 434.2 MB, free: 12.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002099/0.1369, allocations: 1.731 MB / 435.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.902e-06/0.1369, allocations: 0 / 435.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1369, allocations: 0 / 435.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.947e-05/0.1369, allocations: 0 / 435.9 MB, free: 10.41 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002796/0.1397, allocations: 1.487 MB / 437.4 MB, free: 8.875 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.758e-05/0.1398, allocations: 15.97 kB / 437.4 MB, free: 8.859 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002042/0.14, allocations: 152.4 kB / 437.5 MB, free: 8.703 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007081/0.1407, allocations: 188 kB / 437.7 MB, free: 8.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001397/0.1421, allocations: 0.7538 MB / 438.5 MB, free: 7.723 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.731e-05/0.1422, allocations: 74 kB / 438.5 MB, free: 7.652 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001375/0.1423, allocations: 96 kB / 438.6 MB, free: 7.559 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.1439, allocations: 0.9347 MB / 439.6 MB, free: 6.594 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.444e-05/0.1439, allocations: 7.891 kB / 439.6 MB, free: 6.586 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.595e-05/0.144, allocations: 43.94 kB / 439.6 MB, free: 6.543 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.128e-05/0.144, allocations: 24 kB / 439.6 MB, free: 6.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001254/0.1453, allocations: 0.6364 MB / 440.3 MB, free: 5.883 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0055/0.1508, allocations: 3.893 MB / 444.2 MB, free: 1.762 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007153/0.1515, allocations: 424.5 kB / 444.6 MB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005809/0.1521, allocations: 257.9 kB / 444.8 MB, free: 1.066 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.704e-05/0.1521, allocations: 4.328 kB / 444.8 MB, free: 1.062 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.1521, allocations: 34.89 kB / 444.9 MB, free: 1.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 2.425e-06/0.1522, allocations: 4 kB / 444.9 MB, free: 1.016 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.1933/0.3454, allocations: 1.408 MB / 446.3 MB, free: 30.03 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/0.3455, allocations: 82.59 kB / 446.4 MB, free: 29.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.3465, allocations: 0.8214 MB / 447.2 MB, free: 29.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.3465, allocations: 38.08 kB / 447.2 MB, free: 29.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002688/0.3468, allocations: 0.5718 MB / 447.8 MB, free: 29.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.82e-05/0.3469, allocations: 167.7 kB / 448 MB, free: 29.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.347, allocations: 132.8 kB / 448.1 MB, free: 29.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.345e-05/0.3471, allocations: 332.8 kB / 448.4 MB, free: 29.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003157/0.3474, allocations: 164.2 kB / 448.6 MB, free: 29.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004026/0.3478, allocations: 466.7 kB / 449 MB, free: 28.76 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007011/0.3485, allocations: 0.6571 MB / 449.7 MB, free: 28.42 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.3485, allocations: 2.469 kB / 449.7 MB, free: 28.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001115/0.3496, allocations: 0.777 MB / 450.5 MB, free: 28.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.121e-05/0.3497, allocations: 8.125 kB / 450.5 MB, free: 28.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.962e-05/0.3497, allocations: 11.19 kB / 450.5 MB, free: 28.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000271/0.35, allocations: 83.08 kB / 450.6 MB, free: 28.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004446/0.3504, allocations: 156.3 kB / 450.7 MB, free: 28.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001693/0.3521, allocations: 3.14 MB / 453.9 MB, free: 25.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005292/0.3526, allocations: 42.77 kB / 453.9 MB, free: 25.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.337e-05/0.3527, allocations: 32.44 kB / 453.9 MB, free: 25.42 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003251/0.353, allocations: 258.4 kB / 454.2 MB, free: 25.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.3531, allocations: 100.2 kB / 454.3 MB, free: 25.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008041/0.3539, allocations: 483 kB / 454.8 MB, free: 25.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.3539, allocations: 4.312 kB / 454.8 MB, free: 25.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.3539, allocations: 7 kB / 454.8 MB, free: 25.08 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.3539, allocations: 5.438 kB / 454.8 MB, free: 25.08 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001946/0.3559, allocations: 1.443 MB / 456.2 MB, free: 24.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.3559, allocations: 2.312 kB / 456.2 MB, free: 24.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002982/0.3562, allocations: 72.27 kB / 456.3 MB, free: 24.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001859/0.3564, allocations: 71.88 kB / 456.4 MB, free: 24.22 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.505e-05/0.3564, allocations: 12.81 kB / 456.4 MB, free: 24.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001757/0.3581, allocations: 3.12 MB / 459.5 MB, free: 21.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/0.3581, allocations: 3.328 kB / 459.5 MB, free: 21.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00118/0.3593, allocations: 0.7758 MB / 460.3 MB, free: 20.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002492/0.3596, allocations: 200 kB / 460.5 MB, free: 20.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.335e-05/0.3597, allocations: 14.11 kB / 460.5 MB, free: 20.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004024/0.3601, allocations: 31.41 kB / 460.5 MB, free: 20.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.462e-05/0.3601, allocations: 38.7 kB / 460.6 MB, free: 20.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.3e-05/0.3602, allocations: 9.156 kB / 460.6 MB, free: 20.47 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007206/0.3609, allocations: 0.5649 MB / 461.1 MB, free: 20.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3609, allocations: 0 / 461.1 MB, free: 20.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008453/0.3617, allocations: 202.2 kB / 461.3 MB, free: 20.21 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,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.001306/0.363, allocations: 1.349 MB / 462.7 MB, free: 19.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001075/0.3641, allocations: 0.6597 MB / 463.3 MB, free: 18.83 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.3641, allocations: 3.344 kB / 463.3 MB, free: 18.83 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005367/0.3647, allocations: 429.5 kB / 463.8 MB, free: 18.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009687/0.3656, allocations: 222.9 kB / 464 MB, free: 18.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00901/0.3746, allocations: 7.315 MB / 471.3 MB, free: 14.1 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005491/0.3752, allocations: 1.005 MB / 472.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004611/0.3756, allocations: 106.6 kB / 472.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003819/0.376, allocations: 369.7 kB / 472.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of SimCode: time 1.333e-06/0.376, allocations: 0 / 472.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08144/0.4575, allocations: 19.22 MB / 492 MB, free: 2.238 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.98, allocations: 4.062 kB / 492 MB, free: 2.234 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 15.948390046134591]