Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001313/0.001318, allocations: 102.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001431/0.001431, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2287/0.2287, allocations: 46.12 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002231/0.002231, allocations: 83.64 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1073, allocations: 62.45 MB / 480.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002807/0.1101, allocations: 1.553 MB / 481.8 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009185/0.1111, allocations: 0.5454 MB / 482.3 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.108e-05/0.1111, allocations: 0 / 482.3 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.062e-05/0.1112, allocations: 7.922 kB / 482.3 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.55e-05/0.1112, allocations: 15.86 kB / 482.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002121/0.1115, allocations: 55.81 kB / 482.4 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001408/0.1116, allocations: 87.77 kB / 482.5 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.655e-05/0.1117, allocations: 8 kB / 482.5 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001343/0.1119, allocations: 51.77 kB / 482.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.066e-05/0.112, allocations: 47.77 kB / 482.6 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.977e-05/0.112, allocations: 8 kB / 482.6 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.413e-05/0.112, allocations: 8 kB / 482.6 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.019e-05/0.1121, allocations: 27.91 kB / 482.6 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.653e-05/0.1121, allocations: 43.8 kB / 482.7 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001369/0.1123, allocations: 79.98 kB / 482.7 MB, free: 2.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1123, allocations: 0 / 482.7 MB, free: 2.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1123, allocations: 0 / 482.7 MB, free: 2.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1123, allocations: 0 / 482.7 MB, free: 2.582 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006769/0.113, allocations: 403.3 kB / 483.1 MB, free: 2.141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.113, allocations: 12.03 kB / 483.1 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.511e-05/0.1131, allocations: 42.73 kB / 483.2 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.1132, allocations: 16.83 kB / 483.2 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001948/0.1134, allocations: 192.1 kB / 483.4 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.1135, allocations: 4.375 kB / 483.4 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.042e-05/0.1135, allocations: 12.36 kB / 483.4 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002137/0.1137, allocations: 89.77 kB / 483.5 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.1137, allocations: 0 / 483.5 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.1137, allocations: 8 kB / 483.5 MB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.1137, allocations: 0 / 483.5 MB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001408/0.1139, allocations: 43.97 kB / 483.5 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005263/0.1144, allocations: 328.7 kB / 483.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00022/0.1147, allocations: 94.45 kB / 484 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.1148, allocations: 57.06 kB / 484 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.1148, allocations: 3.938 kB / 484 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002256/0.115, allocations: 99.34 kB / 484.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.1151, allocations: 4 kB / 484.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004664/0.1155, allocations: 192.3 kB / 484.3 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.918e-05/0.1156, allocations: 67.39 kB / 484.4 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.1157, allocations: 121.8 kB / 484.5 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.624e-05/0.1157, allocations: 33.7 kB / 484.5 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.354e-05/0.1158, allocations: 88.33 kB / 484.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.391e-05/0.1159, allocations: 39.55 kB / 484.6 MB, free: 468 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.835e-05/0.1159, allocations: 37.7 kB / 484.7 MB, free: 424 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1161, allocations: 322.8 kB / 485 MB, free: 92 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.1162, allocations: 47.97 kB / 485 MB, free: 44 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000138/0.1163, allocations: 72.34 kB / 485.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002299/0.1166, allocations: 116.2 kB / 485.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1166, allocations: 0 / 485.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003059/0.1169, allocations: 165.4 kB / 485.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.1169, allocations: 4 kB / 485.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.1169, allocations: 7.938 kB / 485.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.117, allocations: 0 / 485.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.1171, allocations: 27.98 kB / 485.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.1171, allocations: 8 kB / 485.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.653e-05/0.1172, allocations: 15.84 kB / 485.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.1172, allocations: 4 kB / 485.5 MB, free: 15.59 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample,$PRE.zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001105/0.1173, allocations: 132 kB / 485.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.267e-05/0.1173, allocations: 11.91 kB / 485.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.035e-05/0.1174, allocations: 12.5 kB / 485.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1174, allocations: 3.938 kB / 485.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.1174, allocations: 0 / 485.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1174, allocations: 4 kB / 485.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006067/0.118, allocations: 450.1 kB / 486.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.118, allocations: 7.875 kB / 486.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.616e-05/0.1181, allocations: 11.98 kB / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.703e-06/0.1181, allocations: 4 kB / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.1181, allocations: 0 / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1181, allocations: 0 / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1181, allocations: 0 / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003602/0.1185, allocations: 255.4 kB / 486.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.526e-05/0.1186, allocations: 92.89 kB / 486.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.557e-05/0.1186, allocations: 4 kB / 486.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.1187, allocations: 11.98 kB / 486.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.372e-05/0.1188, allocations: 7.984 kB / 486.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.905e-05/0.1188, allocations: 8 kB / 486.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.958e-05/0.1189, allocations: 99.64 kB / 486.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1189, allocations: 0 / 486.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002531/0.1191, allocations: 24 kB / 486.6 MB, free: 14.38 MB / 366.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: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0006894/0.1198, allocations: 0.7912 MB / 487.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002935/0.1201, allocations: 119.8 kB / 487.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1201, allocations: 0 / 487.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001282/0.1203, allocations: 55.91 kB / 487.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.1205, allocations: 12.31 kB / 487.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001894/0.1224, allocations: 1.646 MB / 489.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.1228, allocations: 0.7001 MB / 489.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.19e-05/0.1228, allocations: 8.875 kB / 489.9 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.16e-05/0.1229, allocations: 23.44 kB / 489.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of SimCode: time 2.094e-06/0.1229, allocations: 0 / 489.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02339/0.1463, allocations: 2.201 MB / 492.1 MB, free: 8.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.662/7.808, allocations: 11.62 kB / 492.1 MB, free: 8.727 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1)