Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.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.Sample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2",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.001553/0.001553, allocations: 190.7 kB / 15.81 MB, free: 6.027 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.413/2.413, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001117/0.001117, allocations: 102.8 kB / 270.3 MB, free: 13.34 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.09934/0.09934, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005775/0.0005777, allocations: 20.45 kB / 392.1 MB, free: 54.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0938/0.09442, allocations: 50.37 MB / 442.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.001799/0.09628, allocations: 1.244 MB / 443.7 MB, free: 9.555 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000381/0.09669, allocations: 140.5 kB / 443.9 MB, free: 9.418 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.809e-05/0.09678, allocations: 0 / 443.9 MB, free: 9.418 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.609e-05/0.09684, allocations: 4 kB / 443.9 MB, free: 9.414 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001125/0.09696, allocations: 7.938 kB / 443.9 MB, free: 9.406 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002629/0.09723, allocations: 29.66 kB / 443.9 MB, free: 9.379 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.903e-05/0.09734, allocations: 27.91 kB / 443.9 MB, free: 9.352 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.904e-05/0.09744, allocations: 11.98 kB / 443.9 MB, free: 9.34 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.017e-05/0.09748, allocations: 15.92 kB / 444 MB, free: 9.324 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.226e-05/0.09753, allocations: 7.938 kB / 444 MB, free: 9.316 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.303e-05/0.09755, allocations: 0 / 444 MB, free: 9.316 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.261e-05/0.09757, allocations: 0 / 444 MB, free: 9.316 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.36e-05/0.09762, allocations: 15.98 kB / 444 MB, free: 9.301 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.009e-05/0.09766, allocations: 33.64 kB / 444 MB, free: 9.262 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 7.129e-05/0.09774, allocations: 31.89 kB / 444 MB, free: 9.23 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.09775, allocations: 0 / 444 MB, free: 9.23 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.09776, allocations: 0 / 444 MB, free: 9.23 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.09777, allocations: 0 / 444 MB, free: 9.23 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003958/0.09818, allocations: 359.9 kB / 444.4 MB, free: 8.832 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.09823, allocations: 8.031 kB / 444.4 MB, free: 8.824 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.662e-05/0.09827, allocations: 38.56 kB / 444.4 MB, free: 8.777 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.992e-05/0.09831, allocations: 7.906 kB / 444.4 MB, free: 8.77 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001681/0.09849, allocations: 190.9 kB / 444.6 MB, free: 8.543 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.09851, allocations: 7.953 kB / 444.6 MB, free: 8.535 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.153e-05/0.09853, allocations: 0 / 444.6 MB, free: 8.535 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003119/0.09886, allocations: 120.9 kB / 444.8 MB, free: 8.398 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.09888, allocations: 0 / 444.8 MB, free: 8.398 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.447e-06/0.0989, allocations: 3.938 kB / 444.8 MB, free: 8.395 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.09892, allocations: 0 / 444.8 MB, free: 8.395 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000119/0.09904, allocations: 27.92 kB / 444.8 MB, free: 8.367 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003021/0.09936, allocations: 265.8 kB / 445.1 MB, free: 8.055 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002381/0.09961, allocations: 134.3 kB / 445.2 MB, free: 7.887 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.09965, allocations: 4.062 kB / 445.2 MB, free: 7.883 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.09968, allocations: 38.56 kB / 445.2 MB, free: 7.836 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 1.943e-06/0.09969, allocations: 0 / 445.2 MB, free: 7.836 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003262/0.1, allocations: 85.64 kB / 445.3 MB, free: 7.746 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/0.1001, allocations: 77.11 kB / 445.4 MB, free: 7.652 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.1002, allocations: 142 kB / 445.5 MB, free: 7.5 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.037e-05/0.1002, allocations: 25.7 kB / 445.5 MB, free: 7.469 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.008e-05/0.1003, allocations: 92.2 kB / 445.6 MB, free: 7.375 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.43e-05/0.1003, allocations: 0 / 445.6 MB, free: 7.375 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.657e-06/0.1003, allocations: 4 kB / 445.6 MB, free: 7.371 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.05e-05/0.1004, allocations: 322.8 kB / 446 MB, free: 7.047 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.267e-05/0.1005, allocations: 11.94 kB / 446 MB, free: 7.035 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.878e-05/0.1005, allocations: 39.42 kB / 446 MB, free: 6.984 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.692e-05/0.1006, allocations: 8 kB / 446 MB, free: 6.977 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1006, allocations: 0 / 446 MB, free: 6.977 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001849/0.1008, allocations: 77.61 kB / 446.1 MB, free: 6.895 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.1009, allocations: 4 kB / 446.1 MB, free: 6.891 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1009, allocations: 0 / 446.1 MB, free: 6.891 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.1009, allocations: 7.938 kB / 446.1 MB, free: 6.883 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-05/0.101, allocations: 15.94 kB / 446.1 MB, free: 6.867 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.101, allocations: 3.984 kB / 446.1 MB, free: 6.863 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.078e-05/0.1011, allocations: 4 kB / 446.1 MB, free: 6.859 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.1011, allocations: 0 / 446.1 MB, free: 6.859 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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 7.478e-05/0.1012, allocations: 129.6 kB / 446.3 MB, free: 6.723 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.19e-05/0.1013, allocations: 49.59 kB / 446.3 MB, free: 6.668 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.441e-05/0.1013, allocations: 12.25 kB / 446.3 MB, free: 6.652 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.1013, allocations: 0 / 446.3 MB, free: 6.652 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.1014, allocations: 4 kB / 446.3 MB, free: 6.648 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1014, allocations: 0 / 446.3 MB, free: 6.648 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000172/0.1015, allocations: 165.6 kB / 446.5 MB, free: 6.438 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1016, allocations: 0 / 446.5 MB, free: 6.438 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.861e-05/0.1016, allocations: 19.86 kB / 446.5 MB, free: 6.418 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.81e-06/0.1017, allocations: 4 kB / 446.5 MB, free: 6.414 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.1017, allocations: 0 / 446.5 MB, free: 6.414 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.1017, allocations: 4 kB / 446.5 MB, free: 6.41 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1017, allocations: 0 / 446.5 MB, free: 6.41 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002022/0.1019, allocations: 186 kB / 446.7 MB, free: 6.203 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.791e-05/0.102, allocations: 89.09 kB / 446.8 MB, free: 6.098 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.775e-05/0.102, allocations: 4 kB / 446.8 MB, free: 6.094 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.123e-05/0.1021, allocations: 4 kB / 446.8 MB, free: 6.09 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.993e-05/0.1022, allocations: 0 / 446.8 MB, free: 6.09 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.846e-06/0.1022, allocations: 3.984 kB / 446.8 MB, free: 6.086 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.1e-05/0.1023, allocations: 107.2 kB / 446.9 MB, free: 5.98 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1023, allocations: 0 / 446.9 MB, free: 5.98 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003081/0.1026, allocations: 4 kB / 446.9 MB, free: 5.977 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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.0004174/0.103, allocations: 0.7798 MB / 447.7 MB, free: 5.164 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000184/0.1032, allocations: 36.11 kB / 447.7 MB, free: 5.129 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.1032, allocations: 0 / 447.7 MB, free: 5.129 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.957e-05/0.1033, allocations: 11.98 kB / 447.7 MB, free: 5.117 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003846/0.1037, allocations: 31.7 kB / 447.8 MB, free: 5.09 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009934/0.1047, allocations: 0.9201 MB / 448.7 MB, free: 4.098 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001575/0.1049, allocations: 0.6926 MB / 449.4 MB, free: 3.379 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.843e-05/0.105, allocations: 0 / 449.4 MB, free: 3.379 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.821e-05/0.105, allocations: 23.36 kB / 449.4 MB, free: 3.355 MB / 282.7 MB Notification: Performance of SimCode: time 1.253e-06/0.105, allocations: 0 / 449.4 MB, free: 3.355 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0193/0.1243, allocations: 1.243 MB / 450.6 MB, free: 2.125 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002791/0.1247, allocations: 200.5 kB / 450.8 MB, free: 1.883 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.516/2.641, allocations: 3.938 kB / 450.8 MB, free: 1.879 MB / 282.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat does not exist to compare? outputFormat=mat