Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.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.IntegerSignals.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample",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.001606/0.001606, allocations: 181.7 kB / 15.81 MB, free: 6.352 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.177/2.177, allocations: 205.4 MB / 221.9 MB, free: 13.86 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.001133/0.001133, allocations: 94.84 kB / 270.3 MB, free: 13.38 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.1126/0.1126, allocations: 12.6 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005801/0.0005804, allocations: 13.97 kB / 392.1 MB, free: 54.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1045, allocations: 50.37 MB / 442.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.003952/0.1085, allocations: 1.573 MB / 444.1 MB, free: 9.262 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00331/0.1118, allocations: 0.9758 MB / 445 MB, free: 8.277 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000223/0.1121, allocations: 0 / 445 MB, free: 8.277 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004367/0.1126, allocations: 51.8 kB / 445.1 MB, free: 8.227 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004229/0.113, allocations: 91.69 kB / 445.2 MB, free: 8.137 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001526/0.1146, allocations: 199.2 kB / 445.4 MB, free: 7.945 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003325/0.1149, allocations: 111.8 kB / 445.5 MB, free: 7.836 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001751/0.1151, allocations: 37.52 kB / 445.5 MB, free: 7.797 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000173/0.1153, allocations: 67.69 kB / 445.6 MB, free: 7.73 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001666/0.1155, allocations: 63.69 kB / 445.6 MB, free: 7.668 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.56e-05/0.1156, allocations: 4 kB / 445.6 MB, free: 7.664 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002429/0.1158, allocations: 39.98 kB / 445.7 MB, free: 7.625 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.116, allocations: 51.81 kB / 445.7 MB, free: 7.574 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.653e-05/0.1161, allocations: 53.58 kB / 445.8 MB, free: 7.516 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004135/0.1165, allocations: 176.4 kB / 446 MB, free: 7.344 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1165, allocations: 0 / 446 MB, free: 7.344 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.876e-06/0.1166, allocations: 0 / 446 MB, free: 7.344 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1166, allocations: 4 kB / 446 MB, free: 7.34 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001035/0.1176, allocations: 0.5077 MB / 446.5 MB, free: 6.777 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.939e-05/0.1177, allocations: 12.03 kB / 446.5 MB, free: 6.766 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.258e-05/0.1178, allocations: 34.56 kB / 446.5 MB, free: 6.723 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.682e-05/0.1179, allocations: 23.72 kB / 446.5 MB, free: 6.699 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000602/0.1185, allocations: 286.4 kB / 446.8 MB, free: 6.375 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.563e-05/0.1186, allocations: 0 / 446.8 MB, free: 6.375 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.984e-05/0.1186, allocations: 12 kB / 446.8 MB, free: 6.363 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006105/0.1193, allocations: 184.2 kB / 447 MB, free: 6.152 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.1193, allocations: 4 kB / 447 MB, free: 6.148 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.414e-05/0.1193, allocations: 0 / 447 MB, free: 6.148 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.1194, allocations: 0 / 447 MB, free: 6.148 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002609/0.1196, allocations: 47.86 kB / 447.1 MB, free: 6.102 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008604/0.1205, allocations: 399.1 kB / 447.4 MB, free: 5.652 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005681/0.1211, allocations: 146.5 kB / 447.6 MB, free: 5.473 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.22e-05/0.1212, allocations: 0 / 447.6 MB, free: 5.473 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003384/0.1215, allocations: 83.44 kB / 447.7 MB, free: 5.379 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 3.848e-06/0.1216, allocations: 4 kB / 447.7 MB, free: 5.375 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008429/0.1224, allocations: 161.3 kB / 447.8 MB, free: 5.211 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.337e-05/0.1225, allocations: 195.8 kB / 448 MB, free: 4.977 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004232/0.123, allocations: 331 kB / 448.3 MB, free: 4.645 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/0.123, allocations: 37.69 kB / 448.4 MB, free: 4.602 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.867e-05/0.1231, allocations: 124.4 kB / 448.5 MB, free: 4.477 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.339e-05/0.1231, allocations: 19.75 kB / 448.5 MB, free: 4.457 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.967e-06/0.1232, allocations: 0 / 448.5 MB, free: 4.457 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.467e-05/0.1232, allocations: 334.8 kB / 448.9 MB, free: 4.121 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.1234, allocations: 23.98 kB / 448.9 MB, free: 4.098 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.1235, allocations: 108.5 kB / 449 MB, free: 3.961 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001249/0.1237, allocations: 31.98 kB / 449 MB, free: 3.93 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.1237, allocations: 4 kB / 449 MB, free: 3.926 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003452/0.124, allocations: 133.3 kB / 449.1 MB, free: 3.789 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.1241, allocations: 8 kB / 449.2 MB, free: 3.781 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.088e-06/0.1241, allocations: 0 / 449.2 MB, free: 3.781 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.1241, allocations: 11.97 kB / 449.2 MB, free: 3.77 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001905/0.1243, allocations: 19.98 kB / 449.2 MB, free: 3.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.1243, allocations: 4.312 kB / 449.2 MB, free: 3.746 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.1245, allocations: 16.03 kB / 449.2 MB, free: 3.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/0.1245, allocations: 12 kB / 449.2 MB, free: 3.719 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001769/0.1247, allocations: 161.5 kB / 449.4 MB, free: 3.551 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.1249, allocations: 77.34 kB / 449.5 MB, free: 3.469 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.991e-05/0.1249, allocations: 29.7 kB / 449.5 MB, free: 3.445 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.125, allocations: 7.938 kB / 449.5 MB, free: 3.438 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.125, allocations: 0 / 449.5 MB, free: 3.438 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.125, allocations: 0 / 449.5 MB, free: 3.438 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000229/0.1252, allocations: 257.6 kB / 449.7 MB, free: 3.137 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.1252, allocations: 0 / 449.7 MB, free: 3.137 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/0.1254, allocations: 19.98 kB / 449.8 MB, free: 3.117 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.1254, allocations: 0 / 449.8 MB, free: 3.117 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.606e-05/0.1254, allocations: 4 kB / 449.8 MB, free: 3.113 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.1254, allocations: 0 / 449.8 MB, free: 3.113 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.1254, allocations: 7.938 kB / 449.8 MB, free: 3.105 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003751/0.1258, allocations: 212.5 kB / 450 MB, free: 2.852 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001186/0.126, allocations: 116.8 kB / 450.1 MB, free: 2.719 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.713e-05/0.126, allocations: 7.953 kB / 450.1 MB, free: 2.711 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001163/0.1261, allocations: 7.984 kB / 450.1 MB, free: 2.703 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.871e-05/0.1262, allocations: 15.98 kB / 450.1 MB, free: 2.688 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.922e-05/0.1263, allocations: 7.938 kB / 450.1 MB, free: 2.68 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002967/0.1266, allocations: 245.9 kB / 450.4 MB, free: 2.438 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1266, allocations: 0 / 450.4 MB, free: 2.438 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003819/0.127, allocations: 36 kB / 450.4 MB, free: 2.402 MB / 282.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,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.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 (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.001618/0.1286, allocations: 1.274 MB / 451.7 MB, free: 1.09 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003616/0.129, allocations: 84.09 kB / 451.8 MB, free: 1.008 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.129, allocations: 0 / 451.8 MB, free: 1.008 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001212/0.1292, allocations: 31.98 kB / 451.8 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005677/0.1298, allocations: 68.83 kB / 451.9 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003021/0.1328, allocations: 2.107 MB / 454 MB, free: 14.72 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004725/0.1333, allocations: 0.7593 MB / 454.7 MB, free: 13.93 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001788/0.1335, allocations: 29.52 kB / 454.8 MB, free: 13.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001678/0.1337, allocations: 67.41 kB / 454.8 MB, free: 13.84 MB / 298.7 MB Notification: Performance of SimCode: time 1.182e-06/0.1337, allocations: 0 / 454.8 MB, free: 13.84 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02968/0.1634, allocations: 4.945 MB / 459.8 MB, free: 8.891 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003902/0.1639, allocations: 250.9 kB / 460 MB, free: 8.594 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.69/2.854, allocations: 8 kB / 460 MB, free: 8.586 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat does not exist to compare? outputFormat=mat