Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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.DCPM_Temperature,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",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.0008799/0.00088, allocations: 179.7 kB / 16.72 MB, free: 5.07 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.16/1.16, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0007461/0.0007461, allocations: 89.42 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002844/0.0002845, allocations: 8 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1771/0.1774, allocations: 47.57 MB / 375.2 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.005123/0.1826, allocations: 6.985 MB / 382.2 MB, free: 39.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002827/0.1854, allocations: 2.443 MB / 384.6 MB, free: 37.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004024/0.1858, allocations: 19.09 kB / 384.6 MB, free: 37.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008395/0.1867, allocations: 430.7 kB / 385.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005538/0.1872, allocations: 330 kB / 385.4 MB, free: 37.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002721/0.1875, allocations: 141.8 kB / 385.5 MB, free: 37.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008246/0.1884, allocations: 1.141 MB / 386.7 MB, free: 36.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005273/0.1889, allocations: 467.9 kB / 387.1 MB, free: 36.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003923/0.1893, allocations: 385.5 kB / 387.5 MB, free: 36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003724/0.1897, allocations: 438 kB / 387.9 MB, free: 35.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.065e-05/0.1898, allocations: 55 kB / 388 MB, free: 35.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002265/0.19, allocations: 96.75 kB / 388.1 MB, free: 35.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.163e-05/0.1901, allocations: 160.5 kB / 388.2 MB, free: 35.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003058/0.1904, allocations: 0.4987 MB / 388.7 MB, free: 35.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006505/0.1911, allocations: 1.133 MB / 389.9 MB, free: 33.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1911, allocations: 0 / 389.9 MB, free: 33.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1911, allocations: 0 / 389.9 MB, free: 33.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.1911, allocations: 0 / 389.9 MB, free: 33.95 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001414/0.1925, allocations: 1.149 MB / 391 MB, free: 32.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.1926, allocations: 16.02 kB / 391 MB, free: 32.73 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001055/0.1927, allocations: 131.5 kB / 391.2 MB, free: 32.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003775/0.1931, allocations: 147.6 kB / 391.3 MB, free: 32.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006583/0.1937, allocations: 0.6338 MB / 391.9 MB, free: 31.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.1938, allocations: 70.06 kB / 392 MB, free: 31.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.494e-05/0.1939, allocations: 83.91 kB / 392.1 MB, free: 31.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.195, allocations: 0.8223 MB / 392.9 MB, free: 30.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.711e-05/0.195, allocations: 8 kB / 392.9 MB, free: 30.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.21e-05/0.1951, allocations: 32 kB / 392.9 MB, free: 30.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.1951, allocations: 20 kB / 393 MB, free: 30.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008503/0.1959, allocations: 0.5505 MB / 393.5 MB, free: 30.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002961/0.1989, allocations: 3.605 MB / 397.1 MB, free: 26.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004162/0.1993, allocations: 250.6 kB / 397.4 MB, free: 26.06 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002082/0.1996, allocations: 129.5 kB / 397.5 MB, free: 25.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.1996, allocations: 0 / 397.5 MB, free: 25.93 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.396e-05/0.1996, allocations: 38.56 kB / 397.5 MB, free: 25.89 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.102e-06/0.1996, allocations: 0 / 397.5 MB, free: 25.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001598/0.2012, allocations: 1.108 MB / 398.6 MB, free: 24.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.449e-05/0.2012, allocations: 85.05 kB / 398.7 MB, free: 24.6 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006713/0.2019, allocations: 0.7584 MB / 399.5 MB, free: 23.83 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.202, allocations: 29.7 kB / 399.5 MB, free: 23.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001959/0.2022, allocations: 0.5175 MB / 400 MB, free: 23.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.763e-05/0.2022, allocations: 114.5 kB / 400.1 MB, free: 23.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.785e-05/0.2022, allocations: 12 kB / 400.1 MB, free: 23.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.21e-05/0.2023, allocations: 374.8 kB / 400.5 MB, free: 22.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002391/0.2026, allocations: 141.2 kB / 400.7 MB, free: 22.63 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003365/0.2029, allocations: 454.2 kB / 401.1 MB, free: 22.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005813/0.2035, allocations: 0.6297 MB / 401.7 MB, free: 21.26 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.2035, allocations: 4 kB / 401.7 MB, free: 21.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0008397/0.2043, allocations: 0.6462 MB / 402.4 MB, free: 20.6 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.2044, allocations: 20.08 kB / 402.4 MB, free: 20.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.2044, allocations: 12 kB / 402.4 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001133/0.2045, allocations: 28.86 kB / 402.4 MB, free: 20.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003896/0.2049, allocations: 155.7 kB / 402.6 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005822/0.2055, allocations: 1.291 MB / 403.9 MB, free: 18.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003989/0.2059, allocations: 48.05 kB / 403.9 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.997e-05/0.2059, allocations: 36 kB / 404 MB, free: 18.88 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * 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.0002256/0.2062, allocations: 241.5 kB / 404.2 MB, free: 18.63 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.174e-05/0.2063, allocations: 79.05 kB / 404.3 MB, free: 18.55 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005534/0.2068, allocations: 350.2 kB / 404.6 MB, free: 18.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.2068, allocations: 0 / 404.6 MB, free: 18.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.2068, allocations: 4 kB / 404.6 MB, free: 18.2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2068, allocations: 8.016 kB / 404.6 MB, free: 18.19 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.2081, allocations: 1.141 MB / 405.8 MB, free: 16.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2081, allocations: 4 kB / 405.8 MB, free: 16.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002541/0.2083, allocations: 55.97 kB / 405.8 MB, free: 16.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.704e-05/0.2084, allocations: 29 kB / 405.9 MB, free: 16.88 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.2084, allocations: 12 kB / 405.9 MB, free: 16.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005106/0.209, allocations: 1.276 MB / 407.1 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.209, allocations: 0 / 407.1 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000705/0.2097, allocations: 0.5876 MB / 407.7 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/0.2098, allocations: 180.2 kB / 407.9 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.769e-05/0.2099, allocations: 8 kB / 407.9 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000312/0.2102, allocations: 31.91 kB / 407.9 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.824e-05/0.2103, allocations: 27.97 kB / 408 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.2103, allocations: 8 kB / 408 MB, free: 14.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004783/0.2108, allocations: 0.5069 MB / 408.5 MB, free: 14.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2108, allocations: 0 / 408.5 MB, free: 14.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005608/0.2114, allocations: 172 kB / 408.7 MB, free: 13.89 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,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 (28): * Single equations (assignments): 27 * 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.0009159/0.2123, allocations: 1.156 MB / 409.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006891/0.213, allocations: 497.4 kB / 410.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.213, allocations: 4.062 kB / 410.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002933/0.2133, allocations: 250.5 kB / 410.5 MB, free: 11.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009953/0.2143, allocations: 179.8 kB / 410.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005488/0.2198, allocations: 4.592 MB / 415.3 MB, free: 6.934 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.2201, allocations: 0.9604 MB / 416.3 MB, free: 5.945 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002944/0.2204, allocations: 319.3 kB / 416.6 MB, free: 5.633 MB / 298.7 MB Notification: Performance of SimCode: time 9.51e-07/0.2205, allocations: 0 / 416.6 MB, free: 5.633 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.38/3.601, allocations: 16.15 MB / 432.7 MB, free: 5.453 MB / 314.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches