Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.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.RealSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_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.001679/0.001683, allocations: 184.9 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.424/2.424, 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.001626/0.001626, allocations: 90.86 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.09964/0.09964, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000882/0.0008822, allocations: 17.72 kB / 392.1 MB, free: 54.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1323, allocations: 50.38 MB / 442.5 MB, free: 10.83 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold): time 0.002701/0.1351, allocations: 1.295 MB / 443.8 MB, free: 9.523 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001487/0.1367, allocations: 0.5047 MB / 444.3 MB, free: 9.012 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.1369, allocations: 7.938 kB / 444.3 MB, free: 9.004 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.513e-05/0.137, allocations: 3.938 kB / 444.3 MB, free: 9 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001736/0.1372, allocations: 11.98 kB / 444.3 MB, free: 8.988 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004549/0.1376, allocations: 43.83 kB / 444.3 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001333/0.1378, allocations: 35.89 kB / 444.4 MB, free: 8.91 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.1379, allocations: 19.98 kB / 444.4 MB, free: 8.891 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.1381, allocations: 23.91 kB / 444.4 MB, free: 8.867 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.399e-05/0.1382, allocations: 19.88 kB / 444.4 MB, free: 8.848 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.127e-05/0.1382, allocations: 0 / 444.4 MB, free: 8.848 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.091e-05/0.1382, allocations: 4 kB / 444.4 MB, free: 8.844 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.659e-05/0.1383, allocations: 11.92 kB / 444.5 MB, free: 8.832 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.834e-05/0.1383, allocations: 33.7 kB / 444.5 MB, free: 8.793 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001191/0.1385, allocations: 44.48 kB / 444.5 MB, free: 8.75 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1385, allocations: 0 / 444.5 MB, free: 8.75 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1385, allocations: 3.938 kB / 444.5 MB, free: 8.746 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.1385, allocations: 0 / 444.5 MB, free: 8.746 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006173/0.1392, allocations: 371.2 kB / 444.9 MB, free: 8.336 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.804e-05/0.1392, allocations: 12.02 kB / 444.9 MB, free: 8.324 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.957e-05/0.1393, allocations: 38.56 kB / 445 MB, free: 8.277 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.638e-05/0.1394, allocations: 7.906 kB / 445 MB, free: 8.27 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000306/0.1397, allocations: 203.1 kB / 445.2 MB, free: 8.035 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.1397, allocations: 4 kB / 445.2 MB, free: 8.031 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.651e-05/0.1398, allocations: 8 kB / 445.2 MB, free: 8.023 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004762/0.1402, allocations: 130.6 kB / 445.3 MB, free: 7.871 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.1403, allocations: 4 kB / 445.3 MB, free: 7.867 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.1403, allocations: 4 kB / 445.3 MB, free: 7.863 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.076e-06/0.1403, allocations: 0 / 445.3 MB, free: 7.863 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002026/0.1406, allocations: 35.91 kB / 445.3 MB, free: 7.828 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005505/0.1411, allocations: 283.5 kB / 445.6 MB, free: 7.492 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002222/0.1414, allocations: 102.3 kB / 445.7 MB, free: 7.355 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.526e-05/0.1414, allocations: 4 kB / 445.7 MB, free: 7.352 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.493e-05/0.1415, allocations: 38.69 kB / 445.8 MB, free: 7.305 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 2.966e-06/0.1415, allocations: 0 / 445.8 MB, free: 7.305 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005604/0.1421, allocations: 105.9 kB / 445.9 MB, free: 7.195 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.09e-05/0.1422, allocations: 136.5 kB / 446 MB, free: 7.031 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001923/0.1424, allocations: 146.3 kB / 446.1 MB, free: 6.879 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.1424, allocations: 29.64 kB / 446.2 MB, free: 6.844 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.619e-05/0.1425, allocations: 92.31 kB / 446.3 MB, free: 6.75 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.857e-05/0.1425, allocations: 11.91 kB / 446.3 MB, free: 6.738 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-06/0.1425, allocations: 0 / 446.3 MB, free: 6.738 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.863e-05/0.1426, allocations: 326.8 kB / 446.6 MB, free: 6.41 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.1428, allocations: 15.94 kB / 446.6 MB, free: 6.395 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001237/0.1429, allocations: 44.22 kB / 446.6 MB, free: 6.336 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001265/0.143, allocations: 23.98 kB / 446.7 MB, free: 6.312 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.1431, allocations: 0 / 446.7 MB, free: 6.312 MB / 282.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000347/0.1434, allocations: 93.45 kB / 446.8 MB, free: 6.215 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.1435, allocations: 4 kB / 446.8 MB, free: 6.211 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.1435, allocations: 4.156 kB / 446.8 MB, free: 6.207 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.366e-05/0.1435, allocations: 4 kB / 446.8 MB, free: 6.203 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000171/0.1437, allocations: 12 kB / 446.8 MB, free: 6.191 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.1438, allocations: 128 / 446.8 MB, free: 6.191 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.1439, allocations: 15.92 kB / 446.8 MB, free: 6.176 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.1439, allocations: 4 kB / 446.8 MB, free: 6.172 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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.0001387/0.1441, allocations: 125.5 kB / 446.9 MB, free: 6.039 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001661/0.1442, allocations: 57.59 kB / 447 MB, free: 5.977 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.363e-05/0.1443, allocations: 15.94 kB / 447 MB, free: 5.961 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.1443, allocations: 4 kB / 447 MB, free: 5.957 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/0.1444, allocations: 0 / 447 MB, free: 5.957 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.1444, allocations: 3.984 kB / 447 MB, free: 5.953 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003185/0.1447, allocations: 177.6 kB / 447.2 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.1447, allocations: 0 / 447.2 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001679/0.1449, allocations: 19.92 kB / 447.2 MB, free: 5.711 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.936e-06/0.145, allocations: 0 / 447.2 MB, free: 5.711 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.145, allocations: 8 kB / 447.2 MB, free: 5.703 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.145, allocations: 0 / 447.2 MB, free: 5.703 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.145, allocations: 4 kB / 447.2 MB, free: 5.699 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003946/0.1454, allocations: 235.1 kB / 447.4 MB, free: 5.426 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.647e-05/0.1456, allocations: 96.94 kB / 447.5 MB, free: 5.312 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.164e-05/0.1456, allocations: 4 kB / 447.5 MB, free: 5.309 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.1458, allocations: 4 kB / 447.5 MB, free: 5.305 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.673e-05/0.1459, allocations: 3.953 kB / 447.5 MB, free: 5.301 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.1459, allocations: 4 kB / 447.6 MB, free: 5.297 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000123/0.146, allocations: 112.6 kB / 447.7 MB, free: 5.188 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.1461, allocations: 4 kB / 447.7 MB, free: 5.184 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000555/0.1466, allocations: 8 kB / 447.7 MB, free: 5.176 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0007377/0.1474, allocations: 0.9729 MB / 448.6 MB, free: 4.156 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003579/0.1478, allocations: 47.86 kB / 448.7 MB, free: 4.109 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.1478, allocations: 4.312 kB / 448.7 MB, free: 4.105 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001073/0.1479, allocations: 19.92 kB / 448.7 MB, free: 4.086 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005855/0.1485, allocations: 39.91 kB / 448.8 MB, free: 4.047 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00179/0.1503, allocations: 1.16 MB / 449.9 MB, free: 2.809 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002396/0.1506, allocations: 0.7004 MB / 450.6 MB, free: 2.082 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.315e-05/0.1507, allocations: 7.781 kB / 450.6 MB, free: 2.074 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.314e-05/0.1508, allocations: 23.48 kB / 450.6 MB, free: 2.055 MB / 282.7 MB Notification: Performance of SimCode: time 1.744e-06/0.1509, allocations: 0 / 450.6 MB, free: 2.055 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02898/0.1799, allocations: 1.606 MB / 452.3 MB, free: 472 kB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002968/0.1802, allocations: 201.2 kB / 452.4 MB, free: 220 kB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.503/2.683, allocations: 0 / 452.4 MB, free: 220 kB / 282.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Hold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold_res.mat does not exist to compare? outputFormat=mat