Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) 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_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects2",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.002266/0.002265, allocations: 185.2 kB / 15.81 MB, free: 6.348 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.234/2.234, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.00117/0.001169, allocations: 98.84 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1506/0.1506, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006171/0.0006173, allocations: 14.28 kB / 392.1 MB, free: 54.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1129, allocations: 50.37 MB / 442.5 MB, free: 10.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.002623/0.1156, allocations: 1.522 MB / 444 MB, free: 9.316 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001433/0.117, allocations: 0.6208 MB / 444.6 MB, free: 8.691 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001768/0.1173, allocations: 3.938 kB / 444.6 MB, free: 8.688 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.414e-05/0.1173, allocations: 11.92 kB / 444.6 MB, free: 8.676 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002011/0.1175, allocations: 27.89 kB / 444.7 MB, free: 8.648 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005169/0.1181, allocations: 97.52 kB / 444.8 MB, free: 8.555 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001865/0.1183, allocations: 95.67 kB / 444.9 MB, free: 8.461 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.1184, allocations: 37.72 kB / 444.9 MB, free: 8.422 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001053/0.1186, allocations: 39.78 kB / 444.9 MB, free: 8.383 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.524e-05/0.1187, allocations: 35.78 kB / 445 MB, free: 8.348 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.101e-05/0.1187, allocations: 8 kB / 445 MB, free: 8.34 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.312e-05/0.1187, allocations: 4 kB / 445 MB, free: 8.336 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.337e-05/0.1188, allocations: 19.86 kB / 445 MB, free: 8.316 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.307e-05/0.1188, allocations: 45.64 kB / 445 MB, free: 8.266 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.119, allocations: 96.64 kB / 445.1 MB, free: 8.172 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.119, allocations: 0 / 445.1 MB, free: 8.172 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.119, allocations: 0 / 445.1 MB, free: 8.172 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.119, allocations: 0 / 445.1 MB, free: 8.172 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0006087/0.1196, allocations: 434.8 kB / 445.6 MB, free: 7.699 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.1197, allocations: 8.031 kB / 445.6 MB, free: 7.691 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.842e-05/0.1197, allocations: 42.55 kB / 445.6 MB, free: 7.641 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.48e-05/0.1198, allocations: 15.81 kB / 445.6 MB, free: 7.625 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002976/0.1201, allocations: 239.6 kB / 445.9 MB, free: 7.352 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.1201, allocations: 8.188 kB / 445.9 MB, free: 7.344 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.1201, allocations: 8 kB / 445.9 MB, free: 7.336 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008061/0.121, allocations: 307.9 kB / 446.2 MB, free: 7.004 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.121, allocations: 3.984 kB / 446.2 MB, free: 7 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.952e-05/0.121, allocations: 4 kB / 446.2 MB, free: 6.996 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.121, allocations: 7.953 kB / 446.2 MB, free: 6.988 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003475/0.1214, allocations: 83.89 kB / 446.3 MB, free: 6.906 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004735/0.1219, allocations: 427.4 kB / 446.7 MB, free: 6.426 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006068/0.1225, allocations: 306.2 kB / 447 MB, free: 6.062 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.919e-05/0.1225, allocations: 4 kB / 447 MB, free: 6.059 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.1226, allocations: 42.61 kB / 447 MB, free: 6.008 MB / 282.7 MB Notification: Performance of pre-optimization done (n=18): time 3.466e-06/0.1226, allocations: 0 / 447 MB, free: 6.008 MB / 282.7 MB Notification: Performance of matching and sorting (n=18): time 0.0008045/0.1234, allocations: 237.8 kB / 447.3 MB, free: 5.77 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.927e-05/0.1235, allocations: 203.8 kB / 447.5 MB, free: 5.527 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001823/0.1237, allocations: 186.9 kB / 447.6 MB, free: 5.336 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.1237, allocations: 29.98 kB / 447.7 MB, free: 5.301 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.621e-05/0.1238, allocations: 100.5 kB / 447.8 MB, free: 5.195 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.64e-05/0.1239, allocations: 19.83 kB / 447.8 MB, free: 5.176 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.557e-06/0.1239, allocations: 4 kB / 447.8 MB, free: 5.172 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.802e-05/0.1239, allocations: 322.8 kB / 448.1 MB, free: 4.848 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.791e-05/0.1241, allocations: 27.98 kB / 448.1 MB, free: 4.82 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001538/0.1242, allocations: 139.4 kB / 448.3 MB, free: 4.629 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/0.1244, allocations: 55.95 kB / 448.3 MB, free: 4.574 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.1244, allocations: 0 / 448.3 MB, free: 4.574 MB / 282.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003897/0.1248, allocations: 181.4 kB / 448.5 MB, free: 4.391 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.1248, allocations: 4 kB / 448.5 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.1249, allocations: 4 kB / 448.5 MB, free: 4.383 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.254e-05/0.1249, allocations: 8 kB / 448.5 MB, free: 4.375 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002234/0.1251, allocations: 35.92 kB / 448.6 MB, free: 4.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.367e-05/0.1252, allocations: 11.92 kB / 448.6 MB, free: 4.328 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001576/0.1253, allocations: 19.91 kB / 448.6 MB, free: 4.309 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.796e-05/0.1254, allocations: 12 kB / 448.6 MB, free: 4.297 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001369/0.1255, allocations: 145.7 kB / 448.7 MB, free: 4.145 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004111/0.1259, allocations: 157.3 kB / 448.9 MB, free: 3.984 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.725e-05/0.126, allocations: 21.64 kB / 448.9 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.126, allocations: 7.984 kB / 448.9 MB, free: 3.957 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.126, allocations: 7.984 kB / 448.9 MB, free: 3.949 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.126, allocations: 4.031 kB / 448.9 MB, free: 3.945 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003048/0.1264, allocations: 209.6 kB / 449.1 MB, free: 3.691 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1264, allocations: 0 / 449.1 MB, free: 3.691 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002506/0.1266, allocations: 43.97 kB / 449.2 MB, free: 3.648 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.1266, allocations: 3.953 kB / 449.2 MB, free: 3.645 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.1267, allocations: 4 kB / 449.2 MB, free: 3.641 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.1267, allocations: 7.938 kB / 449.2 MB, free: 3.633 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.1267, allocations: 0 / 449.2 MB, free: 3.633 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005446/0.1272, allocations: 419.9 kB / 449.6 MB, free: 3.172 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.1274, allocations: 112.8 kB / 449.7 MB, free: 3.043 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.67e-05/0.1274, allocations: 4 kB / 449.7 MB, free: 3.039 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002388/0.1277, allocations: 19.98 kB / 449.7 MB, free: 3.02 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.258e-05/0.1277, allocations: 11.88 kB / 449.8 MB, free: 3.008 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.1277, allocations: 7.953 kB / 449.8 MB, free: 3 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001247/0.1279, allocations: 137.1 kB / 449.9 MB, free: 2.867 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.1279, allocations: 0 / 449.9 MB, free: 2.867 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004819/0.1284, allocations: 24 kB / 449.9 MB, free: 2.844 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001065/0.1295, allocations: 1.295 MB / 451.2 MB, free: 1.5 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004311/0.1299, allocations: 127.7 kB / 451.3 MB, free: 1.375 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1299, allocations: 0 / 451.3 MB, free: 1.375 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.463e-05/0.13, allocations: 21.05 kB / 451.4 MB, free: 1.355 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007817/0.1308, allocations: 107.8 kB / 451.5 MB, free: 1.254 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003072/0.1339, allocations: 3.336 MB / 454.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004492/0.1344, allocations: 0.7358 MB / 455.5 MB, free: 13.03 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000117/0.1346, allocations: 13.55 kB / 455.6 MB, free: 13.01 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.1347, allocations: 43.42 kB / 455.6 MB, free: 12.97 MB / 298.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1347, allocations: 0 / 455.6 MB, free: 12.97 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02473/0.1594, allocations: 3.086 MB / 458.7 MB, free: 9.891 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003534/0.1599, allocations: 213.2 kB / 458.9 MB, free: 9.648 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.57/2.73, allocations: 0 / 458.9 MB, free: 9.648 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_HoldWithDAeffects2.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat does not exist to compare? outputFormat=mat