Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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_SinglePhase,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008773/0.0008773, allocations: 194 kB / 17.38 MB, free: 4.438 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.139/1.139, allocations: 226.5 MB / 244.7 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007587/0.0007586, allocations: 96.38 kB / 296.7 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001936/0.0001936, allocations: 4 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.1716, allocations: 51.3 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.004898/0.1765, allocations: 7.264 MB / 415.4 MB, free: 20.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002466/0.179, allocations: 2.56 MB / 418 MB, free: 17.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003473/0.1794, allocations: 27.88 kB / 418 MB, free: 17.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000816/0.1802, allocations: 469.3 kB / 418.4 MB, free: 17.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005472/0.1808, allocations: 397.1 kB / 418.8 MB, free: 16.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000267/0.181, allocations: 167.8 kB / 419 MB, free: 16.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00078/0.1818, allocations: 1.385 MB / 420.4 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004861/0.1823, allocations: 0.4929 MB / 420.9 MB, free: 14.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004095/0.1827, allocations: 473.9 kB / 421.3 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003414/0.1831, allocations: 0.5093 MB / 421.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.525e-05/0.1832, allocations: 68 kB / 421.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002061/0.1834, allocations: 104 kB / 422 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.1835, allocations: 195.1 kB / 422.2 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003287/0.1838, allocations: 0.5848 MB / 422.8 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007135/0.1846, allocations: 1.379 MB / 424.2 MB, free: 11.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1846, allocations: 0 / 424.2 MB, free: 11.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1846, allocations: 0 / 424.2 MB, free: 11.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.1846, allocations: 0 / 424.2 MB, free: 11.55 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001531/0.1861, allocations: 1.285 MB / 425.5 MB, free: 10.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.1862, allocations: 8.031 kB / 425.5 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001177/0.1863, allocations: 152.4 kB / 425.6 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005845/0.1869, allocations: 203.3 kB / 425.8 MB, free: 9.852 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007741/0.1877, allocations: 0.7431 MB / 426.6 MB, free: 9.066 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.121e-05/0.1877, allocations: 70 kB / 426.6 MB, free: 9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.541e-05/0.1878, allocations: 111.8 kB / 426.7 MB, free: 8.891 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.189, allocations: 0.9464 MB / 427.7 MB, free: 7.914 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.754e-05/0.1891, allocations: 0 / 427.7 MB, free: 7.914 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.152e-05/0.1891, allocations: 40 kB / 427.7 MB, free: 7.875 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.1892, allocations: 24 kB / 427.7 MB, free: 7.852 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009902/0.1902, allocations: 0.6636 MB / 428.4 MB, free: 7.188 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003436/0.1936, allocations: 3.977 MB / 432.4 MB, free: 2.984 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005228/0.1941, allocations: 455.4 kB / 432.8 MB, free: 2.512 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004727/0.1946, allocations: 277.4 kB / 433.1 MB, free: 2.238 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.1947, allocations: 7.781 kB / 433.1 MB, free: 2.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.435e-05/0.1947, allocations: 38.56 kB / 433.1 MB, free: 2.184 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 1.563e-06/0.1947, allocations: 4 kB / 433.1 MB, free: 2.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002166/0.1969, allocations: 1.577 MB / 434.7 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.38e-05/0.1969, allocations: 89.05 kB / 434.8 MB, free: 412 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008772/0.1978, allocations: 0.8331 MB / 435.6 MB, free: 15.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.1978, allocations: 33.7 kB / 435.7 MB, free: 15.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003489/0.1982, allocations: 0.5681 MB / 436.2 MB, free: 14.95 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.1983, allocations: 157.8 kB / 436.4 MB, free: 14.79 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.583e-05/0.1983, allocations: 16 kB / 436.4 MB, free: 14.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.1984, allocations: 333.9 kB / 436.7 MB, free: 14.44 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000348/0.1988, allocations: 177.9 kB / 436.9 MB, free: 14.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005054/0.1993, allocations: 483.6 kB / 437.4 MB, free: 13.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008583/0.2002, allocations: 0.6799 MB / 438.1 MB, free: 12.85 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.2002, allocations: 4 kB / 438.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00121/0.2014, allocations: 0.7906 MB / 438.9 MB, free: 12.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.2014, allocations: 8 kB / 438.9 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.2014, allocations: 8 kB / 438.9 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002235/0.2017, allocations: 89.92 kB / 439 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004699/0.2021, allocations: 151.8 kB / 439.1 MB, free: 11.78 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001999/0.2042, allocations: 2.884 MB / 442 MB, free: 8.625 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004482/0.2046, allocations: 47.89 kB / 442 MB, free: 8.578 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.229e-05/0.2047, allocations: 35.94 kB / 442.1 MB, free: 8.543 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 (85): * 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: 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.0003163/0.205, allocations: 261.5 kB / 442.3 MB, free: 8.277 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.2051, allocations: 86.97 kB / 442.4 MB, free: 8.191 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008951/0.206, allocations: 0.5186 MB / 442.9 MB, free: 7.66 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.206, allocations: 4 kB / 442.9 MB, free: 7.656 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.206, allocations: 4 kB / 442.9 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.206, allocations: 0 / 442.9 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001988/0.208, allocations: 1.485 MB / 444.4 MB, free: 6.082 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.208, allocations: 4 kB / 444.4 MB, free: 6.078 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003162/0.2084, allocations: 75.91 kB / 444.5 MB, free: 6.004 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000178/0.2086, allocations: 77.83 kB / 444.6 MB, free: 5.922 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.051e-05/0.2086, allocations: 15.94 kB / 444.6 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001903/0.2105, allocations: 2.852 MB / 447.5 MB, free: 2.789 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.2105, allocations: 3.938 kB / 447.5 MB, free: 2.785 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.2118, allocations: 0.8199 MB / 448.3 MB, free: 1.914 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002163/0.212, allocations: 196.2 kB / 448.5 MB, free: 1.703 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.438e-05/0.2121, allocations: 12 kB / 448.5 MB, free: 1.691 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004021/0.2125, allocations: 35.92 kB / 448.5 MB, free: 1.656 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.352e-05/0.2126, allocations: 43.88 kB / 448.6 MB, free: 1.613 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.437e-05/0.2126, allocations: 12 kB / 448.6 MB, free: 1.602 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006662/0.2133, allocations: 0.5732 MB / 449.1 MB, free: 1.031 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2133, allocations: 0 / 449.1 MB, free: 1.031 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006714/0.214, allocations: 204 kB / 449.3 MB, free: 0.832 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 (39): * Single equations (assignments): 37 * 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.001508/0.2155, allocations: 1.392 MB / 450.7 MB, free: 15.38 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001048/0.2165, allocations: 0.7138 MB / 451.4 MB, free: 14.64 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2165, allocations: 4 kB / 451.5 MB, free: 14.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005961/0.2172, allocations: 445.4 kB / 451.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.2183, allocations: 214.1 kB / 452.1 MB, free: 13.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007742/0.226, allocations: 5.418 MB / 457.5 MB, free: 8.246 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005169/0.2266, allocations: 1.009 MB / 458.5 MB, free: 7.211 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004669/0.2271, allocations: 395.3 kB / 458.9 MB, free: 6.824 MB / 330.7 MB Notification: Performance of SimCode: time 4.41e-07/0.2271, allocations: 0 / 458.9 MB, free: 6.824 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.385/4.613, allocations: 23.97 MB / 482.9 MB, free: 14.82 MB / 362.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches