Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.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.BooleanSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold",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.00126/0.00126, allocations: 172.9 kB / 16.14 MB, free: 5.656 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.418/1.418, allocations: 205.4 MB / 222.3 MB, free: 9.016 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.0007487/0.0007487, allocations: 89.19 kB / 270.7 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07708/0.07708, allocations: 12.59 MB / 331.5 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003851/0.0003851, allocations: 12 kB / 392.8 MB, free: 65.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0935/0.0939, allocations: 50.37 MB / 443.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 0.002242/0.09619, allocations: 1.598 MB / 444.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.09763, allocations: 0.956 MB / 445.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001531/0.09781, allocations: 3.938 kB / 445.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005691/0.09839, allocations: 143.6 kB / 445.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002681/0.09867, allocations: 107.6 kB / 445.9 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000499/0.09918, allocations: 163.7 kB / 446.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000223/0.09941, allocations: 187.5 kB / 446.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.09953, allocations: 29.77 kB / 446.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.09964, allocations: 63.7 kB / 446.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001023/0.09975, allocations: 75.56 kB / 446.4 MB, free: 12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.05e-05/0.09978, allocations: 4 kB / 446.5 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.09991, allocations: 35.98 kB / 446.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.457e-05/0.09998, allocations: 43.83 kB / 446.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.357e-05/0.1001, allocations: 93.19 kB / 446.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.1003, allocations: 199.3 kB / 446.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1003, allocations: 0 / 446.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1003, allocations: 0 / 446.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.1003, allocations: 0 / 446.8 MB, free: 11.62 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006494/0.101, allocations: 484.3 kB / 447.3 MB, free: 11.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.101, allocations: 12.03 kB / 447.3 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.689e-05/0.1011, allocations: 38.73 kB / 447.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.016e-05/0.1011, allocations: 28.66 kB / 447.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002604/0.1014, allocations: 262.8 kB / 447.6 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.1014, allocations: 8.375 kB / 447.6 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.793e-05/0.1014, allocations: 7.938 kB / 447.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002814/0.1017, allocations: 176.8 kB / 447.8 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.1017, allocations: 7.922 kB / 447.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.1018, allocations: 0 / 447.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.1018, allocations: 0 / 447.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.646e-05/0.1019, allocations: 39.92 kB / 447.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004118/0.1023, allocations: 454.5 kB / 448.3 MB, free: 9.941 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001882/0.1025, allocations: 142.5 kB / 448.4 MB, free: 9.766 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.345e-05/0.1026, allocations: 55.42 kB / 448.5 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.1026, allocations: 0 / 448.5 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001428/0.1028, allocations: 97.03 kB / 448.6 MB, free: 9.586 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.623e-06/0.1028, allocations: 0 / 448.6 MB, free: 9.586 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003166/0.1031, allocations: 149.4 kB / 448.7 MB, free: 9.434 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.504e-05/0.1032, allocations: 166.2 kB / 448.9 MB, free: 9.234 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002005/0.1034, allocations: 269.2 kB / 449.2 MB, free: 8.961 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.327e-05/0.1034, allocations: 37.7 kB / 449.2 MB, free: 8.918 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.582e-05/0.1035, allocations: 116.4 kB / 449.3 MB, free: 8.801 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.439e-05/0.1035, allocations: 27.8 kB / 449.3 MB, free: 8.773 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-06/0.1035, allocations: 0 / 449.3 MB, free: 8.773 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.819e-05/0.1036, allocations: 326.8 kB / 449.7 MB, free: 8.445 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.701e-05/0.1036, allocations: 23.98 kB / 449.7 MB, free: 8.422 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.27e-05/0.1037, allocations: 86.84 kB / 449.8 MB, free: 8.312 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001121/0.1038, allocations: 89.02 kB / 449.9 MB, free: 8.207 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1038, allocations: 4.031 kB / 449.9 MB, free: 8.203 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001838/0.104, allocations: 125.7 kB / 450 MB, free: 8.074 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.1041, allocations: 4 kB / 450 MB, free: 8.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.1041, allocations: 4 kB / 450 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.1041, allocations: 4 kB / 450 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.636e-05/0.1042, allocations: 16 kB / 450 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.1042, allocations: 0 / 450 MB, free: 8.047 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.532e-05/0.1043, allocations: 23.98 kB / 450 MB, free: 8.023 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.756e-06/0.1043, allocations: 4 kB / 450 MB, free: 8.02 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 9.711e-05/0.1044, allocations: 145.8 kB / 450.2 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.452e-05/0.1045, allocations: 65.44 kB / 450.2 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.213e-05/0.1045, allocations: 21.72 kB / 450.3 MB, free: 7.777 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.1045, allocations: 4 kB / 450.3 MB, free: 7.773 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1045, allocations: 3.938 kB / 450.3 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.1046, allocations: 11.92 kB / 450.3 MB, free: 7.758 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001539/0.1047, allocations: 229.5 kB / 450.5 MB, free: 7.484 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.1047, allocations: 4 kB / 450.5 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.576e-05/0.1048, allocations: 7.984 kB / 450.5 MB, free: 7.473 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.1048, allocations: 0 / 450.5 MB, free: 7.473 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.1048, allocations: 8 kB / 450.5 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.1048, allocations: 0 / 450.5 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1048, allocations: 0 / 450.5 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001946/0.105, allocations: 175.4 kB / 450.7 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.325e-05/0.1051, allocations: 108.8 kB / 450.8 MB, free: 7.141 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.84e-05/0.1051, allocations: 11.98 kB / 450.8 MB, free: 7.129 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.274e-05/0.1052, allocations: 4 kB / 450.8 MB, free: 7.125 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.142e-05/0.1052, allocations: 11.92 kB / 450.8 MB, free: 7.113 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.1052, allocations: 4 kB / 450.8 MB, free: 7.109 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001377/0.1054, allocations: 204.5 kB / 451 MB, free: 6.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.81e-07/0.1054, allocations: 0 / 451 MB, free: 6.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002445/0.1056, allocations: 31.94 kB / 451.1 MB, free: 6.879 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001079/0.1067, allocations: 1.019 MB / 452.1 MB, free: 5.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001798/0.1069, allocations: 79.84 kB / 452.2 MB, free: 5.742 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1069, allocations: 0 / 452.2 MB, free: 5.742 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.369e-05/0.107, allocations: 27.98 kB / 452.2 MB, free: 5.715 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004209/0.1074, allocations: 80.58 kB / 452.3 MB, free: 5.637 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.1092, allocations: 2.03 MB / 454.3 MB, free: 3.477 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001513/0.1094, allocations: 0.7322 MB / 455 MB, free: 2.715 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.15e-05/0.1095, allocations: 21.53 kB / 455.1 MB, free: 2.695 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.012e-05/0.1096, allocations: 51.42 kB / 455.1 MB, free: 2.645 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.1096, allocations: 0 / 455.1 MB, free: 2.645 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01461/0.1242, allocations: 4.225 MB / 459.3 MB, free: 14.4 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002424/0.1245, allocations: 265.1 kB / 459.6 MB, free: 14.05 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.873/1.997, allocations: 4 kB / 459.6 MB, free: 14.05 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat does not exist to compare? outputFormat=mat