Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.RAM.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.RAM,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_RAM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.658/1.658, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003541/0.0003542, allocations: 16 kB / 233.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08138/0.08177, allocations: 38.76 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3662/0.448, allocations: 74.7 MB / 346.8 MB, free: 14.77 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/0.4483, allocations: 72.78 kB / 346.9 MB, free: 14.73 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1447/0.593, allocations: 39.27 MB / 386.1 MB, free: 13.99 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.593, allocations: 0 / 386.1 MB, free: 13.99 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.247e-05/0.5931, allocations: 16 kB / 386.2 MB, free: 13.97 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002665/0.5958, allocations: 1.552 MB / 387.7 MB, free: 12.31 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.758e-05/0.5959, allocations: 16.02 kB / 387.7 MB, free: 12.3 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001878/0.5961, allocations: 58.48 kB / 387.8 MB, free: 12.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002395/0.5963, allocations: 126.4 kB / 387.9 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.5974, allocations: 472.6 kB / 388.4 MB, free: 11.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.387e-05/0.5975, allocations: 16 kB / 388.4 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.242e-05/0.5976, allocations: 20.34 kB / 388.4 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.599, allocations: 0.5871 MB / 389 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.599, allocations: 0 / 389 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.063e-05/0.5991, allocations: 11.98 kB / 389 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.5991, allocations: 8 kB / 389 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.6002, allocations: 467.8 kB / 389.5 MB, free: 10.49 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002329/0.6026, allocations: 0.9194 MB / 390.4 MB, free: 9.523 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001462/0.6041, allocations: 0.7405 MB / 391.1 MB, free: 8.773 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/0.6041, allocations: 0 / 391.1 MB, free: 8.773 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001416/0.6055, allocations: 0.7321 MB / 391.9 MB, free: 8.004 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 3.075e-06/0.6056, allocations: 0 / 391.9 MB, free: 8.004 MB / 314.7 MB Notification: Performance of matching and sorting (n=41): time 0.004592/0.6102, allocations: 2.316 MB / 394.2 MB, free: 5.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002845/0.6105, allocations: 334.7 kB / 394.5 MB, free: 5.176 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003148/0.6137, allocations: 1.317 MB / 395.8 MB, free: 3.852 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001731/0.6139, allocations: 37.7 kB / 395.9 MB, free: 3.809 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003114/0.6142, allocations: 284.5 kB / 396.1 MB, free: 3.527 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002032/0.6144, allocations: 94.92 kB / 396.2 MB, free: 3.434 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.222e-05/0.6145, allocations: 12 kB / 396.2 MB, free: 3.422 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.6147, allocations: 322.8 kB / 396.6 MB, free: 3.098 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001029/0.6157, allocations: 468.1 kB / 397 MB, free: 2.637 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001011/0.6168, allocations: 0.4913 MB / 397.5 MB, free: 2.137 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.6178, allocations: 0.6475 MB / 398.2 MB, free: 1.434 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.6179, allocations: 7.984 kB / 398.2 MB, free: 1.426 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.003083/0.621, allocations: 1.477 MB / 399.6 MB, free: 15.89 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003355/0.6214, allocations: 307.9 kB / 399.9 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.6214, allocations: 4.062 kB / 399.9 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.862e-05/0.6214, allocations: 0 / 399.9 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.29e-05/0.6215, allocations: 15.88 kB / 400 MB, free: 15.51 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/0.6215, allocations: 0 / 400 MB, free: 15.51 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006762/0.6222, allocations: 27.89 kB / 400 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002377/0.6224, allocations: 111.8 kB / 400.1 MB, free: 15.38 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 45 ($PRE.dLATRAM.inertialDelaySensitive[2].y,$PRE.dLATRAM.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,dLATRAM.dataIn[1],dLATRAM.dataIn[2],dLATRAM.mem[1,1],dLATRAM.mem[1,2],dLATRAM.mem[2,1],dLATRAM.mem[2,2],dLATRAM.mem[3,1],dLATRAM.mem[3,2],dLATRAM.mem[4,1],dLATRAM.mem[4,2],dLATRAM.nextstate[1],dLATRAM.nextstate[2],dLATRAM.mem_word[1],dLATRAM.mem_word[2],dLATRAM.int_addr,dLATRAM.yy[1],dLATRAM.yy[2],$PRE.dLATRAM.inertialDelaySensitive[1].x,dLATRAM.inertialDelaySensitive[1].x,dLATRAM.inertialDelaySensitive[1].y,dLATRAM.inertialDelaySensitive[1].delayTime,dLATRAM.inertialDelaySensitive[1].y_auxiliary,dLATRAM.inertialDelaySensitive[1].y_old,dLATRAM.inertialDelaySensitive[1].lh,dLATRAM.inertialDelaySensitive[1].t_next,$PRE.dLATRAM.inertialDelaySensitive[2].x,dLATRAM.inertialDelaySensitive[2].x,dLATRAM.inertialDelaySensitive[2].y,dLATRAM.inertialDelaySensitive[2].delayTime,dLATRAM.inertialDelaySensitive[2].y_auxiliary,dLATRAM.inertialDelaySensitive[2].y_old,dLATRAM.inertialDelaySensitive[2].lh,dLATRAM.inertialDelaySensitive[2].t_next,addr_1.y,data_1.y,data_0.y,WE.y,addr_0.y,RE.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 9 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001818/0.6243, allocations: 0.8611 MB / 401 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002778/0.6246, allocations: 130.5 kB / 401.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005436/0.6251, allocations: 183.9 kB / 401.3 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.6251, allocations: 0 / 401.3 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/0.6252, allocations: 7.953 kB / 401.3 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.6252, allocations: 0 / 401.3 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004958/0.6301, allocations: 2.44 MB / 403.7 MB, free: 11.58 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/0.6302, allocations: 0 / 403.7 MB, free: 11.58 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.412e-05/0.6302, allocations: 7.938 kB / 403.7 MB, free: 11.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.585e-06/0.6303, allocations: 0 / 403.7 MB, free: 11.57 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.6304, allocations: 35.97 kB / 403.8 MB, free: 11.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/0.6304, allocations: 3.953 kB / 403.8 MB, free: 11.54 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.6304, allocations: 0 / 403.8 MB, free: 11.54 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003591/0.634, allocations: 1.842 MB / 405.6 MB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001352/0.6354, allocations: 0.4991 MB / 406.1 MB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003056/0.6357, allocations: 63.95 kB / 406.2 MB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005413/0.6363, allocations: 27.97 kB / 406.2 MB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002129/0.6384, allocations: 0.6358 MB / 406.8 MB, free: 8.375 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00021/0.6386, allocations: 111.9 kB / 406.9 MB, free: 8.266 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002528/0.6412, allocations: 1.082 MB / 408 MB, free: 7.18 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6412, allocations: 0 / 408 MB, free: 7.18 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001022/0.6422, allocations: 199.9 kB / 408.2 MB, free: 6.984 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 41 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,dLATRAM.dataIn[1],dLATRAM.dataIn[2],dLATRAM.mem[1,1],dLATRAM.mem[1,2],dLATRAM.mem[2,1],dLATRAM.mem[2,2],dLATRAM.mem[3,1],dLATRAM.mem[3,2],dLATRAM.mem[4,1],dLATRAM.mem[4,2],dLATRAM.nextstate[1],dLATRAM.nextstate[2],dLATRAM.mem_word[1],dLATRAM.mem_word[2],dLATRAM.int_addr,dLATRAM.yy[1],dLATRAM.yy[2],dLATRAM.inertialDelaySensitive[1].x,dLATRAM.inertialDelaySensitive[1].y,dLATRAM.inertialDelaySensitive[1].delayTime,dLATRAM.inertialDelaySensitive[1].y_auxiliary,dLATRAM.inertialDelaySensitive[1].y_old,dLATRAM.inertialDelaySensitive[1].lh,dLATRAM.inertialDelaySensitive[1].t_next,dLATRAM.inertialDelaySensitive[2].x,dLATRAM.inertialDelaySensitive[2].y,dLATRAM.inertialDelaySensitive[2].delayTime,dLATRAM.inertialDelaySensitive[2].y_auxiliary,dLATRAM.inertialDelaySensitive[2].y_old,dLATRAM.inertialDelaySensitive[2].lh,dLATRAM.inertialDelaySensitive[2].t_next,addr_1.y,data_1.y,data_0.y,WE.y,addr_0.y,RE.y) * Number of discrete states: 39 (addr_1.y,data_1.y,data_0.y,WE.y,addr_0.y,RE.y,dLATRAM.yy[2],dLATRAM.yy[1],dLATRAM.nextstate[2],dLATRAM.nextstate[1],dLATRAM.mem_word[2],dLATRAM.mem_word[1],dLATRAM.int_addr,dLATRAM.mem[4,2],dLATRAM.mem[4,1],dLATRAM.mem[3,2],dLATRAM.mem[3,1],dLATRAM.mem[2,2],dLATRAM.mem[2,1],dLATRAM.mem[1,2],dLATRAM.mem[1,1],dLATRAM.inertialDelaySensitive[1].y,dLATRAM.inertialDelaySensitive[1].y_auxiliary,dLATRAM.inertialDelaySensitive[1].t_next,dLATRAM.inertialDelaySensitive[1].delayTime,dLATRAM.inertialDelaySensitive[1].lh,dLATRAM.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATRAM.inertialDelaySensitive[1].x,dLATRAM.inertialDelaySensitive[2].y,dLATRAM.inertialDelaySensitive[2].y_auxiliary,dLATRAM.inertialDelaySensitive[2].t_next,dLATRAM.inertialDelaySensitive[2].delayTime,dLATRAM.inertialDelaySensitive[2].lh,dLATRAM.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATRAM.inertialDelaySensitive[2].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 9 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004935/0.6472, allocations: 2.683 MB / 410.9 MB, free: 4.262 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003392/0.6506, allocations: 2.107 MB / 413 MB, free: 2.043 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.6507, allocations: 0 / 413 MB, free: 2.043 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002316/0.653, allocations: 1.6 MB / 414.6 MB, free: 340 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004539/0.6576, allocations: 0.7155 MB / 415.3 MB, free: 15.62 MB / 346.7 MB Warning: Could not resolve URI (uri) at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01797/0.6755, allocations: 8.362 MB / 423.7 MB, free: 7.168 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001334/0.6769, allocations: 1.154 MB / 424.8 MB, free: 5.992 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003563/0.6773, allocations: 207.4 kB / 425 MB, free: 5.789 MB / 346.7 MB Notification: Performance of SimCode: time 1.262e-06/0.6773, allocations: 0 / 425 MB, free: 5.789 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.491/4.168, allocations: 17.48 MB / 442.5 MB, free: 100.4 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.RAM_res.mat does not exist to compare? outputFormat=mat