Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_trunk_cpp_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/Complex trunk/package.mo): time 0.0008929/0.0008929, allocations: 192 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.143/1.143, allocations: 226.5 MB / 244.7 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007405/0.0007405, allocations: 104.1 kB / 296.7 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002306/0.0002306, allocations: 8 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.17/0.1702, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.004875/0.1752, allocations: 7.135 MB / 415.3 MB, free: 20.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002334/0.1775, allocations: 2.501 MB / 417.8 MB, free: 18.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000326/0.1779, allocations: 19.94 kB / 417.8 MB, free: 18.01 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008049/0.1787, allocations: 473.3 kB / 418.3 MB, free: 17.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005419/0.1792, allocations: 381.2 kB / 418.6 MB, free: 17.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002514/0.1795, allocations: 155.8 kB / 418.8 MB, free: 17.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007604/0.1802, allocations: 1.362 MB / 420.1 MB, free: 15.65 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004932/0.1807, allocations: 0.5006 MB / 420.6 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003696/0.1811, allocations: 454 kB / 421.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000329/0.1815, allocations: 0.5015 MB / 421.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.366e-05/0.1816, allocations: 67.94 kB / 421.7 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002011/0.1818, allocations: 104 kB / 421.8 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.721e-05/0.1819, allocations: 191.1 kB / 421.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003274/0.1822, allocations: 0.5732 MB / 422.5 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007338/0.1829, allocations: 1.348 MB / 423.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.183, allocations: 0 / 423.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.183, allocations: 4 kB / 423.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.183, allocations: 4 kB / 423.9 MB, free: 11.88 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001478/0.1845, allocations: 1.25 MB / 425.1 MB, free: 10.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.1845, allocations: 12.03 kB / 425.1 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001196/0.1846, allocations: 148.4 kB / 425.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000509/0.1851, allocations: 187.3 kB / 425.5 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007799/0.1859, allocations: 0.7345 MB / 426.2 MB, free: 9.453 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.629e-05/0.186, allocations: 77.94 kB / 426.3 MB, free: 9.375 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.666e-05/0.1861, allocations: 99.91 kB / 426.4 MB, free: 9.277 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.1873, allocations: 0.9307 MB / 427.3 MB, free: 8.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.76e-05/0.1874, allocations: 0 / 427.3 MB, free: 8.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.171e-05/0.1874, allocations: 44 kB / 427.3 MB, free: 8.277 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.1874, allocations: 24 kB / 427.4 MB, free: 8.254 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009651/0.1884, allocations: 0.6325 MB / 428 MB, free: 7.617 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003436/0.1919, allocations: 3.954 MB / 432 MB, free: 3.438 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005047/0.1924, allocations: 436.1 kB / 432.4 MB, free: 2.988 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000439/0.1928, allocations: 265.3 kB / 432.6 MB, free: 2.727 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.1929, allocations: 8.266 kB / 432.6 MB, free: 2.719 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.523e-05/0.1929, allocations: 38.89 kB / 432.7 MB, free: 2.672 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.343e-06/0.1929, allocations: 0 / 432.7 MB, free: 2.672 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.001978/0.1949, allocations: 1.421 MB / 434.1 MB, free: 1.176 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.357e-05/0.1949, allocations: 81.11 kB / 434.2 MB, free: 1.078 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007408/0.1957, allocations: 0.8214 MB / 435 MB, free: 256 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.1957, allocations: 29.7 kB / 435 MB, free: 220 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003185/0.196, allocations: 0.5604 MB / 435.6 MB, free: 15.64 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.1961, allocations: 149.8 kB / 435.7 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.712e-05/0.1962, allocations: 19.94 kB / 435.8 MB, free: 15.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.1963, allocations: 333.9 kB / 436.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003176/0.1966, allocations: 165.9 kB / 436.3 MB, free: 14.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000487/0.1971, allocations: 468 kB / 436.7 MB, free: 14.39 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008308/0.1979, allocations: 0.6585 MB / 437.4 MB, free: 13.6 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.1979, allocations: 3.938 kB / 437.4 MB, free: 13.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001199/0.1991, allocations: 0.7706 MB / 438.1 MB, free: 12.81 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.1992, allocations: 8 kB / 438.1 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.1992, allocations: 12 kB / 438.2 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002391/0.1994, allocations: 93.8 kB / 438.3 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004469/0.1999, allocations: 151.8 kB / 438.4 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002098/0.202, allocations: 2.88 MB / 441.3 MB, free: 9.395 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004549/0.2025, allocations: 39.83 kB / 441.3 MB, free: 9.355 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.13e-05/0.2025, allocations: 40.06 kB / 441.4 MB, free: 9.316 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003337/0.2029, allocations: 253.6 kB / 441.6 MB, free: 9.059 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.203, allocations: 82.97 kB / 441.7 MB, free: 8.977 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008645/0.2039, allocations: 0.4913 MB / 442.2 MB, free: 8.469 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.2039, allocations: 4 kB / 442.2 MB, free: 8.465 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2039, allocations: 4 kB / 442.2 MB, free: 8.461 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.2039, allocations: 3.984 kB / 442.2 MB, free: 8.457 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/0.2058, allocations: 1.443 MB / 443.6 MB, free: 6.926 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.2058, allocations: 4 kB / 443.6 MB, free: 6.922 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002925/0.2061, allocations: 80.11 kB / 443.7 MB, free: 6.844 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001763/0.2063, allocations: 73.61 kB / 443.8 MB, free: 6.766 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.48e-05/0.2064, allocations: 12 kB / 443.8 MB, free: 6.754 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001976/0.2083, allocations: 2.85 MB / 446.6 MB, free: 3.641 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2084, allocations: 4.031 kB / 446.7 MB, free: 3.637 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.2095, allocations: 0.7882 MB / 447.4 MB, free: 2.801 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002206/0.2097, allocations: 196.1 kB / 447.6 MB, free: 2.59 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.389e-05/0.2098, allocations: 15.98 kB / 447.6 MB, free: 2.574 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003866/0.2102, allocations: 31.92 kB / 447.7 MB, free: 2.543 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.525e-05/0.2103, allocations: 31.95 kB / 447.7 MB, free: 2.512 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.2103, allocations: 12 kB / 447.7 MB, free: 2.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000688/0.211, allocations: 0.5654 MB / 448.3 MB, free: 1.941 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.211, allocations: 0 / 448.3 MB, free: 1.941 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006718/0.2117, allocations: 204 kB / 448.5 MB, free: 1.742 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001429/0.2132, allocations: 1.338 MB / 449.8 MB, free: 360 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001008/0.2142, allocations: 0.6983 MB / 450.5 MB, free: 15.63 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2142, allocations: 0 / 450.5 MB, free: 15.63 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005984/0.2148, allocations: 445.8 kB / 451 MB, free: 15.17 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.2159, allocations: 219.3 kB / 451.2 MB, free: 14.96 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007607/0.2235, allocations: 5.272 MB / 456.4 MB, free: 9.383 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005122/0.2241, allocations: 0.997 MB / 457.4 MB, free: 8.359 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004278/0.2245, allocations: 375.3 kB / 457.8 MB, free: 7.992 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2245, allocations: 4 kB / 457.8 MB, free: 7.988 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.616/4.84, allocations: 23.5 MB / 481.3 MB, free: 468 kB / 346.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches