Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.0008247/0.0008248, allocations: 175.4 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.172/1.172, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000738/0.000738, allocations: 91.23 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002964/0.0002965, allocations: 8 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1874/0.1877, allocations: 47.57 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.005416/0.1931, allocations: 6.991 MB / 382.2 MB, free: 39.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003194/0.1964, allocations: 2.459 MB / 384.6 MB, free: 37.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004884/0.1969, allocations: 23.28 kB / 384.7 MB, free: 37.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009698/0.1978, allocations: 458.6 kB / 385.1 MB, free: 37.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006438/0.1985, allocations: 381.5 kB / 385.5 MB, free: 37.22 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002814/0.1988, allocations: 146.1 kB / 385.6 MB, free: 37.1 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009932/0.1998, allocations: 1.323 MB / 387 MB, free: 36.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006164/0.2004, allocations: 0.498 MB / 387.5 MB, free: 35.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004528/0.2009, allocations: 441.2 kB / 387.9 MB, free: 35.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003914/0.2013, allocations: 486 kB / 388.4 MB, free: 35.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.2014, allocations: 70.66 kB / 388.4 MB, free: 35.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002286/0.2016, allocations: 103.9 kB / 388.5 MB, free: 35.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.849e-05/0.2017, allocations: 187.1 kB / 388.7 MB, free: 35.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003278/0.2021, allocations: 0.5654 MB / 389.3 MB, free: 34.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007232/0.2028, allocations: 1.336 MB / 390.6 MB, free: 33.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2028, allocations: 0 / 390.6 MB, free: 33.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.2028, allocations: 0 / 390.6 MB, free: 33.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.2028, allocations: 0 / 390.6 MB, free: 33.21 MB / 298.7 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.001521/0.2044, allocations: 1.242 MB / 391.9 MB, free: 31.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.2044, allocations: 12.03 kB / 391.9 MB, free: 31.9 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001218/0.2045, allocations: 148.3 kB / 392 MB, free: 31.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004315/0.205, allocations: 175.3 kB / 392.2 MB, free: 31.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007459/0.2057, allocations: 0.7111 MB / 392.9 MB, free: 30.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.509e-05/0.2058, allocations: 74 kB / 393 MB, free: 30.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.028e-05/0.2059, allocations: 92 kB / 393.1 MB, free: 30.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.2071, allocations: 0.9268 MB / 394 MB, free: 29.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.792e-05/0.2071, allocations: 7.891 kB / 394 MB, free: 29.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.08e-05/0.2072, allocations: 44 kB / 394 MB, free: 29.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.2072, allocations: 24 kB / 394.1 MB, free: 29.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009587/0.2082, allocations: 0.6286 MB / 394.7 MB, free: 29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003282/0.2115, allocations: 3.936 MB / 398.6 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004261/0.2119, allocations: 365.6 kB / 399 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002284/0.2121, allocations: 152.8 kB / 399.1 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.2122, allocations: 7.984 kB / 399.1 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.754e-05/0.2122, allocations: 42.5 kB / 399.2 MB, free: 24.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 1.894e-06/0.2122, allocations: 0 / 399.2 MB, free: 24.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001689/0.2139, allocations: 1.221 MB / 400.4 MB, free: 22.94 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.504e-05/0.2139, allocations: 81.11 kB / 400.5 MB, free: 22.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007425/0.2147, allocations: 0.8136 MB / 401.3 MB, free: 22.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.2147, allocations: 33.7 kB / 401.3 MB, free: 21.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002216/0.2149, allocations: 0.5678 MB / 401.9 MB, free: 21.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.056e-05/0.215, allocations: 134.2 kB / 402 MB, free: 21.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.12e-05/0.215, allocations: 19.94 kB / 402 MB, free: 21.25 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.514e-05/0.2151, allocations: 330 kB / 402.4 MB, free: 20.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002584/0.2154, allocations: 149.9 kB / 402.5 MB, free: 20.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003303/0.2157, allocations: 464 kB / 403 MB, free: 20.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006125/0.2163, allocations: 0.6546 MB / 403.6 MB, free: 19.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.2163, allocations: 0 / 403.6 MB, free: 19.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0008791/0.2172, allocations: 0.704 MB / 404.3 MB, free: 18.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.2172, allocations: 8 kB / 404.3 MB, free: 18.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.2173, allocations: 12 kB / 404.3 MB, free: 18.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001197/0.2174, allocations: 32.84 kB / 404.4 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004126/0.2178, allocations: 167.9 kB / 404.5 MB, free: 18.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005754/0.2184, allocations: 1.284 MB / 405.8 MB, free: 17.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004009/0.2188, allocations: 51.89 kB / 405.9 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.962e-05/0.2188, allocations: 32 kB / 405.9 MB, free: 16.95 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002527/0.2191, allocations: 261 kB / 406.2 MB, free: 16.69 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.844e-05/0.2192, allocations: 83.06 kB / 406.2 MB, free: 16.61 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005815/0.2198, allocations: 386.1 kB / 406.6 MB, free: 16.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.2198, allocations: 7.938 kB / 406.6 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.2198, allocations: 0 / 406.6 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2198, allocations: 7.984 kB / 406.6 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001305/0.2211, allocations: 1.281 MB / 407.9 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.2211, allocations: 0 / 407.9 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002849/0.2214, allocations: 84.11 kB / 408 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.504e-05/0.2215, allocations: 20.84 kB / 408 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.2215, allocations: 15.94 kB / 408 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005093/0.222, allocations: 1.268 MB / 409.3 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.222, allocations: 7.969 kB / 409.3 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007597/0.2228, allocations: 0.655 MB / 410 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/0.223, allocations: 188.1 kB / 410.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.176e-05/0.2231, allocations: 8 kB / 410.2 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003357/0.2234, allocations: 27.98 kB / 410.2 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.939e-05/0.2235, allocations: 27.97 kB / 410.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.2235, allocations: 19.98 kB / 410.2 MB, free: 12.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005132/0.224, allocations: 0.5459 MB / 410.8 MB, free: 11.79 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.224, allocations: 0 / 410.8 MB, free: 11.79 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005429/0.2246, allocations: 195.9 kB / 411 MB, free: 11.59 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009417/0.2255, allocations: 1.199 MB / 412.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006972/0.2262, allocations: 0.5303 MB / 412.7 MB, free: 9.801 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2263, allocations: 0 / 412.7 MB, free: 9.801 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003136/0.2266, allocations: 272.5 kB / 413 MB, free: 9.523 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.2276, allocations: 194.9 kB / 413.2 MB, free: 9.336 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006046/0.2337, allocations: 5.155 MB / 418.3 MB, free: 3.887 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003147/0.234, allocations: 0.9923 MB / 419.3 MB, free: 2.867 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003221/0.2344, allocations: 379.3 kB / 419.7 MB, free: 2.496 MB / 298.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2344, allocations: 0 / 419.7 MB, free: 2.496 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.492/3.727, allocations: 18.41 MB / 438.1 MB, free: 56 kB / 314.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches