Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestDutyCycleGenerator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo", uses=false) Using package MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/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 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(MEV.Test.TestDutyCycleGenerator,fileNamePrefix="MEV_MEV_Test_TestDutyCycleGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestDutyCycleGenerator,fileNamePrefix="MEV_MEV_Test_TestDutyCycleGenerator",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.002298/0.002298, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003314/0.003314, allocations: 196.6 kB / 16.53 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.576/2.576, allocations: 205.1 MB / 222.4 MB, free: 4.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.01676/0.01676, allocations: 1.932 MB / 271.7 MB, free: 3.332 MB / 222.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.002251/0.002251, allocations: 75.81 kB / 329.9 MB, free: 32.7 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1733/0.1756, allocations: 47.13 MB / 377.1 MB, free: 1.535 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestDutyCycleGenerator): time 0.004843/0.1805, allocations: 1.387 MB / 378.5 MB, free: 132 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004583/0.181, allocations: 87.75 kB / 378.6 MB, free: 44 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.59e-05/0.1812, allocations: 0 / 378.6 MB, free: 44 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.744e-05/0.1813, allocations: 3.938 kB / 378.6 MB, free: 40 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.551e-05/0.1814, allocations: 3.938 kB / 378.6 MB, free: 36 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006036/0.182, allocations: 11.98 kB / 378.6 MB, free: 24 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000146/0.1821, allocations: 27.97 kB / 378.6 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000181/0.1823, allocations: 11.97 kB / 378.6 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.873e-05/0.1824, allocations: 19.88 kB / 378.6 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.479e-05/0.1825, allocations: 7.938 kB / 378.6 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.872e-05/0.1825, allocations: 4 kB / 378.6 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.543e-05/0.1825, allocations: 0 / 378.6 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.065e-05/0.1826, allocations: 7.984 kB / 378.6 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.703e-05/0.1827, allocations: 7.938 kB / 378.7 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001445/0.1828, allocations: 27.91 kB / 378.7 MB, free: 15.91 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.1829, allocations: 0 / 378.7 MB, free: 15.91 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.1829, allocations: 0 / 378.7 MB, free: 15.91 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.1829, allocations: 0 / 378.7 MB, free: 15.91 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.001188/0.1841, allocations: 347.7 kB / 379 MB, free: 15.52 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.599e-05/0.1842, allocations: 15.88 kB / 379 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.997e-05/0.1842, allocations: 38.69 kB / 379.1 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.068e-05/0.1843, allocations: 4.875 kB / 379.1 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000215/0.1845, allocations: 168.3 kB / 379.2 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.923e-05/0.1846, allocations: 4.375 kB / 379.3 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.605e-05/0.1846, allocations: 384 / 379.3 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002297/0.1848, allocations: 54.23 kB / 379.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.1848, allocations: 3.938 kB / 379.3 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.1849, allocations: 0 / 379.3 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.1849, allocations: 4 kB / 379.3 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001407/0.185, allocations: 27.97 kB / 379.3 MB, free: 15.15 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009028/0.1859, allocations: 256.9 kB / 379.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002374/0.1862, allocations: 58.48 kB / 379.6 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.755e-05/0.1863, allocations: 21 kB / 379.7 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.1863, allocations: 4 kB / 379.7 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00033/0.1867, allocations: 71.31 kB / 379.7 MB, free: 14.68 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.302e-06/0.1867, allocations: 0 / 379.7 MB, free: 14.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003888/0.1871, allocations: 89.56 kB / 379.8 MB, free: 14.58 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.875e-05/0.1872, allocations: 55.41 kB / 379.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002058/0.1874, allocations: 101.8 kB / 380 MB, free: 14.41 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.276e-05/0.1875, allocations: 33.64 kB / 380 MB, free: 14.37 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.1876, allocations: 84.08 kB / 380.1 MB, free: 14.28 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.21e-05/0.1877, allocations: 3.906 kB / 380.1 MB, free: 14.28 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.191e-05/0.1877, allocations: 21.72 kB / 380.1 MB, free: 14.25 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002082/0.1879, allocations: 322.8 kB / 380.4 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.257e-05/0.188, allocations: 11.98 kB / 380.4 MB, free: 13.91 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.978e-05/0.1881, allocations: 38.5 kB / 380.5 MB, free: 13.87 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001533/0.1883, allocations: 58.48 kB / 380.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1883, allocations: 0 / 380.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002377/0.1885, allocations: 73.78 kB / 380.6 MB, free: 13.72 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.1886, allocations: 4 kB / 380.6 MB, free: 13.72 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.1886, allocations: 4 kB / 380.6 MB, free: 13.71 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.421e-05/0.1886, allocations: 0 / 380.6 MB, free: 13.71 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.1888, allocations: 19.98 kB / 380.6 MB, free: 13.7 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.1888, allocations: 0 / 380.6 MB, free: 13.7 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.216e-05/0.1888, allocations: 11.91 kB / 380.7 MB, free: 13.68 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.1889, allocations: 0 / 380.7 MB, free: 13.68 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,dutyCycleGenerator.offTime,$PRE.dutyCycleGenerator.offTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001252/0.189, allocations: 117.8 kB / 380.8 MB, free: 13.56 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.392e-05/0.189, allocations: 4 kB / 380.8 MB, free: 13.55 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.348e-05/0.1891, allocations: 7.5 kB / 380.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.1891, allocations: 3.938 kB / 380.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.1891, allocations: 4 kB / 380.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.1891, allocations: 0 / 380.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000197/0.1893, allocations: 165.6 kB / 381 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1893, allocations: 0 / 381 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.279e-05/0.1894, allocations: 4 kB / 381 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1894, allocations: 0 / 381 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.1894, allocations: 8.359 kB / 381 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1894, allocations: 0 / 381 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.1894, allocations: 4 kB / 381 MB, free: 13.31 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002853/0.1897, allocations: 105 kB / 381.1 MB, free: 13.19 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001314/0.1899, allocations: 89 kB / 381.2 MB, free: 13.08 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.619e-05/0.19, allocations: 0 / 381.2 MB, free: 13.08 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.961e-05/0.1901, allocations: 4 kB / 381.2 MB, free: 13.08 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.809e-05/0.1901, allocations: 3.984 kB / 381.2 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.682e-06/0.1901, allocations: 0 / 381.2 MB, free: 13.07 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.624e-05/0.1902, allocations: 87.22 kB / 381.2 MB, free: 12.99 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1902, allocations: 4 kB / 381.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002126/0.1904, allocations: 8 kB / 381.3 MB, free: 12.98 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,dutyCycleGenerator.offTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007472/0.1912, allocations: 0.628 MB / 381.9 MB, free: 12.32 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00037/0.1916, allocations: 39.97 kB / 381.9 MB, free: 12.28 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.539e-05/0.1917, allocations: 0 / 381.9 MB, free: 12.28 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001618/0.1919, allocations: 27.92 kB / 382 MB, free: 12.25 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002058/0.1921, allocations: 4 kB / 382 MB, free: 12.25 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007808/0.1929, allocations: 143.1 kB / 382.1 MB, free: 12.07 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004806/0.1934, allocations: 0.6806 MB / 382.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.194e-05/0.1934, allocations: 8 kB / 382.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.323e-05/0.1935, allocations: 11.44 kB / 382.8 MB, free: 11.34 MB / 286.1 MB Notification: Performance of SimCode: time 8.12e-07/0.1935, allocations: 0 / 382.8 MB, free: 11.34 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.281/2.475, allocations: 1.255 MB / 384.1 MB, free: 10.04 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.96/20.43, allocations: 20.47 kB / 384.1 MB, free: 10.02 MB / 286.1 MB (rm -f MEV_MEV.Test.TestDutyCycleGenerator.pipe ; mkfifo MEV_MEV.Test.TestDutyCycleGenerator.pipe ; head -c 1048576 < MEV_MEV.Test.TestDutyCycleGenerator.pipe >> ../files/MEV_MEV.Test.TestDutyCycleGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestDutyCycleGenerator_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestDutyCycleGenerator.fmu > MEV_MEV.Test.TestDutyCycleGenerator.pipe 2>&1)