Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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.DCEE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_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.001361/0.001361, allocations: 103.9 kB / 17.58 MB, free: 5.422 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.001303/0.001304, allocations: 192.2 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.225/1.225, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001273/0.001273, allocations: 56.14 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0845/0.08579, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.008959/0.09478, allocations: 7.935 MB / 335.3 MB, free: 12.39 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004395/0.09921, allocations: 2.631 MB / 338 MB, free: 9.746 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009493/0.1002, allocations: 23.94 kB / 338 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001408/0.1016, allocations: 0.5403 MB / 338.5 MB, free: 9.18 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001257/0.1029, allocations: 460.4 kB / 339 MB, free: 8.727 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004503/0.1034, allocations: 239.7 kB / 339.2 MB, free: 8.492 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001312/0.1047, allocations: 1.428 MB / 340.6 MB, free: 7.059 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006814/0.1054, allocations: 0.5846 MB / 341.2 MB, free: 6.453 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005543/0.106, allocations: 0.5408 MB / 341.8 MB, free: 5.91 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005434/0.1065, allocations: 0.5794 MB / 342.3 MB, free: 5.328 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001505/0.1067, allocations: 136 kB / 342.5 MB, free: 5.195 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002856/0.107, allocations: 180 kB / 342.6 MB, free: 5.02 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001752/0.1071, allocations: 267 kB / 342.9 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005034/0.1077, allocations: 0.6532 MB / 343.6 MB, free: 4.102 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001311/0.109, allocations: 1.67 MB / 345.2 MB, free: 2.426 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.109, allocations: 4 kB / 345.2 MB, free: 2.422 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.01e-07/0.109, allocations: 0 / 345.2 MB, free: 2.422 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.109, allocations: 0 / 345.2 MB, free: 2.422 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.001928/0.1109, allocations: 1.429 MB / 346.7 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.502e-05/0.111, allocations: 8.031 kB / 346.7 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001434/0.1111, allocations: 152.2 kB / 346.8 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004996/0.1116, allocations: 167.4 kB / 347 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008875/0.1125, allocations: 0.7183 MB / 347.7 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.48e-05/0.1126, allocations: 70 kB / 347.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.1127, allocations: 100 kB / 347.9 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.1141, allocations: 0.9151 MB / 348.8 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.427e-05/0.1141, allocations: 11.98 kB / 348.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.517e-05/0.1142, allocations: 40 kB / 348.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.1142, allocations: 24 kB / 348.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.1153, allocations: 0.6246 MB / 349.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004268/0.1196, allocations: 3.917 MB / 353.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005612/0.1202, allocations: 355.6 kB / 353.7 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002528/0.1204, allocations: 144.8 kB / 353.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.1205, allocations: 0 / 353.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.1205, allocations: 38.56 kB / 353.9 MB, free: 9.312 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.313e-06/0.1205, allocations: 0 / 353.9 MB, free: 9.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002046/0.1225, allocations: 1.201 MB / 355.1 MB, free: 8.035 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.454e-05/0.1226, allocations: 81.11 kB / 355.2 MB, free: 7.938 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009768/0.1236, allocations: 0.8214 MB / 356 MB, free: 7.109 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.822e-05/0.1236, allocations: 37.7 kB / 356.1 MB, free: 7.066 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003786/0.124, allocations: 0.5679 MB / 356.6 MB, free: 6.488 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.601e-05/0.1241, allocations: 130.2 kB / 356.8 MB, free: 6.359 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001619/0.1243, allocations: 126.5 kB / 356.9 MB, free: 6.227 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.1244, allocations: 334 kB / 357.2 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002971/0.1247, allocations: 153.9 kB / 357.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004761/0.1252, allocations: 452 kB / 357.8 MB, free: 5.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008103/0.126, allocations: 0.6392 MB / 358.4 MB, free: 4.379 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.126, allocations: 4 kB / 358.4 MB, free: 4.375 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001068/0.1271, allocations: 0.6885 MB / 359.1 MB, free: 3.676 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.1271, allocations: 12.16 kB / 359.1 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.1271, allocations: 8 kB / 359.1 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001256/0.1273, allocations: 36.84 kB / 359.2 MB, free: 3.617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004496/0.1277, allocations: 155.7 kB / 359.3 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.1288, allocations: 1.394 MB / 360.7 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004868/0.1293, allocations: 40.11 kB / 360.8 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.698e-05/0.1294, allocations: 32 kB / 360.8 MB, free: 1.859 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003937/0.1298, allocations: 257.5 kB / 361.1 MB, free: 1.598 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.1299, allocations: 86.91 kB / 361.1 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007593/0.1307, allocations: 386.5 kB / 361.5 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1307, allocations: 4 kB / 361.5 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.1307, allocations: 0 / 361.5 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.1307, allocations: 0 / 361.5 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001871/0.1326, allocations: 1.265 MB / 362.8 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.1326, allocations: 0 / 362.8 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002895/0.1329, allocations: 79.83 kB / 362.9 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.427e-05/0.133, allocations: 21.08 kB / 362.9 MB, free: 15.67 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.121e-05/0.133, allocations: 12 kB / 362.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008987/0.1339, allocations: 1.371 MB / 364.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.1339, allocations: 4.031 kB / 364.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009634/0.1349, allocations: 0.6312 MB / 364.9 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002118/0.1351, allocations: 188.1 kB / 365.1 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.77e-05/0.1352, allocations: 11.98 kB / 365.1 MB, free: 13.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003563/0.1356, allocations: 27.92 kB / 365.1 MB, free: 13.23 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.758e-05/0.1357, allocations: 27.91 kB / 365.1 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.1357, allocations: 12 kB / 365.2 MB, free: 13.2 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006829/0.1364, allocations: 0.5615 MB / 365.7 MB, free: 12.64 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1364, allocations: 0 / 365.7 MB, free: 12.64 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000664/0.1371, allocations: 188 kB / 365.9 MB, free: 12.46 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001323/0.1384, allocations: 1.199 MB / 367.1 MB, free: 11.21 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000996/0.1394, allocations: 0.5284 MB / 367.6 MB, free: 10.67 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1394, allocations: 0 / 367.6 MB, free: 10.67 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003885/0.1398, allocations: 267.1 kB / 367.9 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.1409, allocations: 214.5 kB / 368.1 MB, free: 10.19 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009334/0.1502, allocations: 7.621 MB / 375.7 MB, free: 2.082 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005394/0.1508, allocations: 0.9884 MB / 376.7 MB, free: 1.066 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003997/0.1512, allocations: 98.88 kB / 376.8 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003781/0.1516, allocations: 375.3 kB / 377.2 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1516, allocations: 0 / 377.2 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.621/0.7726, allocations: 17.51 MB / 394.7 MB, free: 47.58 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/11.23, allocations: 15.91 kB / 394.7 MB, free: 47.57 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches