Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) 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.DCMachines.DCSE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",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.001435/0.001435, allocations: 101.5 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.001372/0.001372, allocations: 192 kB / 18.51 MB, free: 4.508 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.207/1.207, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001391/0.001391, allocations: 51.92 kB / 280.8 MB, free: 3.066 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08463/0.08603, allocations: 46.62 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009161/0.09522, allocations: 8.044 MB / 335.4 MB, free: 12.28 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004476/0.09972, allocations: 2.673 MB / 338.1 MB, free: 9.594 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009414/0.1007, allocations: 23.94 kB / 338.1 MB, free: 9.57 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001421/0.1022, allocations: 0.5441 MB / 338.7 MB, free: 9.023 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001381/0.1036, allocations: 476.3 kB / 339.1 MB, free: 8.555 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006126/0.1042, allocations: 247.7 kB / 339.4 MB, free: 8.312 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001679/0.1059, allocations: 1.459 MB / 340.8 MB, free: 6.848 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008129/0.1067, allocations: 0.5846 MB / 341.4 MB, free: 6.242 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007328/0.1074, allocations: 0.5603 MB / 342 MB, free: 5.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007396/0.1082, allocations: 0.5872 MB / 342.6 MB, free: 5.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002308/0.1084, allocations: 144 kB / 342.7 MB, free: 4.949 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003827/0.1088, allocations: 176 kB / 342.9 MB, free: 4.777 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002278/0.1091, allocations: 286.9 kB / 343.2 MB, free: 4.496 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007262/0.1098, allocations: 0.6571 MB / 343.8 MB, free: 3.836 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001513/0.1113, allocations: 1.697 MB / 345.5 MB, free: 2.133 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.1113, allocations: 0 / 345.5 MB, free: 2.133 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.1113, allocations: 0 / 345.5 MB, free: 2.133 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.82e-05/0.1114, allocations: 0 / 345.5 MB, free: 2.133 MB / 286.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.00246/0.1138, allocations: 1.453 MB / 347 MB, free: 0.625 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.739e-05/0.1139, allocations: 16.03 kB / 347 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001694/0.1141, allocations: 152.4 kB / 347.1 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006434/0.1147, allocations: 179.4 kB / 347.3 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.1158, allocations: 0.7298 MB / 348 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.717e-05/0.1159, allocations: 74 kB / 348.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.116, allocations: 100 kB / 348.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.1174, allocations: 0.9346 MB / 349.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.942e-05/0.1175, allocations: 11.91 kB / 349.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.877e-05/0.1176, allocations: 36 kB / 349.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.771e-05/0.1176, allocations: 28 kB / 349.2 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/0.1188, allocations: 0.6325 MB / 349.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004713/0.1235, allocations: 3.926 MB / 353.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000607/0.1241, allocations: 428.6 kB / 354.2 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005273/0.1247, allocations: 261.3 kB / 354.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.1247, allocations: 8.328 kB / 354.5 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.1247, allocations: 38.89 kB / 354.5 MB, free: 8.754 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.493e-06/0.1247, allocations: 0 / 354.5 MB, free: 8.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002482/0.1272, allocations: 1.391 MB / 355.9 MB, free: 7.285 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.1273, allocations: 85.11 kB / 356 MB, free: 7.184 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.1283, allocations: 0.8291 MB / 356.8 MB, free: 6.348 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.941e-05/0.1284, allocations: 33.64 kB / 356.8 MB, free: 6.309 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004148/0.1288, allocations: 0.5681 MB / 357.4 MB, free: 5.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001341/0.129, allocations: 153.8 kB / 357.5 MB, free: 5.578 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002013/0.1292, allocations: 130.5 kB / 357.7 MB, free: 5.441 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1293, allocations: 330 kB / 358 MB, free: 5.113 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003362/0.1297, allocations: 161.9 kB / 358.2 MB, free: 4.957 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006036/0.1303, allocations: 464 kB / 358.6 MB, free: 4.367 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.1313, allocations: 0.6583 MB / 359.3 MB, free: 3.574 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.922e-05/0.1313, allocations: 4 kB / 359.3 MB, free: 3.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.00147/0.1328, allocations: 0.7626 MB / 360 MB, free: 2.797 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.1328, allocations: 15.94 kB / 360.1 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.691e-05/0.1329, allocations: 8.344 kB / 360.1 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002367/0.1331, allocations: 89.56 kB / 360.1 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004532/0.1336, allocations: 151.7 kB / 360.3 MB, free: 2.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002484/0.1361, allocations: 3.157 MB / 363.5 MB, free: 15.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005645/0.1366, allocations: 35.89 kB / 363.5 MB, free: 15.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.537e-05/0.1367, allocations: 36 kB / 363.5 MB, free: 15.03 MB / 318.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.000411/0.1371, allocations: 268.4 kB / 363.8 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000147/0.1373, allocations: 82.97 kB / 363.9 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009356/0.1382, allocations: 499.5 kB / 364.4 MB, free: 14.17 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.1383, allocations: 8 kB / 364.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1383, allocations: 0 / 364.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.1383, allocations: 0 / 364.4 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002183/0.1405, allocations: 1.442 MB / 365.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.1405, allocations: 8.219 kB / 365.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002921/0.1408, allocations: 71.91 kB / 365.9 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001823/0.141, allocations: 65.67 kB / 365.9 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.593e-05/0.141, allocations: 16 kB / 366 MB, free: 12.47 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002335/0.1434, allocations: 3.118 MB / 369.1 MB, free: 9.074 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.1434, allocations: 4 kB / 369.1 MB, free: 9.07 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00123/0.1446, allocations: 0.7613 MB / 369.8 MB, free: 8.266 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003185/0.1449, allocations: 196.2 kB / 370 MB, free: 8.055 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.1451, allocations: 27.91 kB / 370.1 MB, free: 8.027 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004195/0.1455, allocations: 19.98 kB / 370.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.435e-05/0.1456, allocations: 43.89 kB / 370.1 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.426e-05/0.1456, allocations: 12 kB / 370.1 MB, free: 7.953 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008125/0.1465, allocations: 0.5654 MB / 370.7 MB, free: 7.395 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1465, allocations: 0 / 370.7 MB, free: 7.395 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008286/0.1473, allocations: 204 kB / 370.9 MB, free: 7.195 MB / 318.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.001462/0.1488, allocations: 1.33 MB / 372.2 MB, free: 5.801 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001241/0.15, allocations: 0.7015 MB / 372.9 MB, free: 5.074 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.15, allocations: 3.938 kB / 372.9 MB, free: 5.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006435/0.1507, allocations: 442.4 kB / 373.4 MB, free: 4.613 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.1518, allocations: 230.4 kB / 373.6 MB, free: 4.391 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1512/0.303, allocations: 7.818 MB / 381.4 MB, free: 50.38 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004478/0.3035, allocations: 1.007 MB / 382.4 MB, free: 49.68 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004238/0.3039, allocations: 104.5 kB / 382.5 MB, free: 49.66 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003544/0.3043, allocations: 370.5 kB / 382.9 MB, free: 49.62 MB / 318.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3043, allocations: 0 / 382.9 MB, free: 49.62 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4688/0.7731, allocations: 18.69 MB / 401.6 MB, free: 40.23 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.51, allocations: 0 / 401.6 MB, free: 40.23 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches