Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.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.Sample1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample1",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.001256/0.001256, allocations: 174.6 kB / 15.81 MB, free: 6.285 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.563/1.563, allocations: 205.4 MB / 222 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.0007418/0.0007418, allocations: 94.28 kB / 270.3 MB, free: 13.37 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.09014/0.09014, allocations: 12.6 MB / 331.2 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000432/0.0004322, allocations: 13.88 kB / 392.1 MB, free: 54.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09827/0.09873, allocations: 50.38 MB / 442.5 MB, free: 10.82 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1): time 0.00152/0.1003, allocations: 1.264 MB / 443.8 MB, free: 9.539 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006957/0.101, allocations: 0.4883 MB / 444.3 MB, free: 9.043 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.484e-05/0.1011, allocations: 0 / 444.3 MB, free: 9.043 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.381e-05/0.1012, allocations: 3.938 kB / 444.3 MB, free: 9.039 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001413/0.1013, allocations: 11.92 kB / 444.3 MB, free: 9.027 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002653/0.1016, allocations: 35.84 kB / 444.3 MB, free: 8.992 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001098/0.1017, allocations: 35.86 kB / 444.3 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.1018, allocations: 11.98 kB / 444.4 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.133e-05/0.1019, allocations: 31.91 kB / 444.4 MB, free: 8.914 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.529e-05/0.102, allocations: 7.938 kB / 444.4 MB, free: 8.906 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.355e-05/0.102, allocations: 4 kB / 444.4 MB, free: 8.902 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.358e-05/0.102, allocations: 0 / 444.4 MB, free: 8.902 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.431e-05/0.1021, allocations: 15.92 kB / 444.4 MB, free: 8.887 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.785e-05/0.1021, allocations: 33.7 kB / 444.4 MB, free: 8.848 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 7.775e-05/0.1022, allocations: 27.88 kB / 444.5 MB, free: 8.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1022, allocations: 0 / 444.5 MB, free: 8.82 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1022, allocations: 0 / 444.5 MB, free: 8.82 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.1023, allocations: 0 / 444.5 MB, free: 8.82 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.0004511/0.1027, allocations: 379.8 kB / 444.8 MB, free: 8.402 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.1028, allocations: 12.03 kB / 444.9 MB, free: 8.391 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.231e-05/0.1028, allocations: 30.56 kB / 444.9 MB, free: 8.352 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.004e-05/0.1028, allocations: 11.84 kB / 444.9 MB, free: 8.34 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002205/0.1031, allocations: 186.9 kB / 445.1 MB, free: 8.117 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.1031, allocations: 4 kB / 445.1 MB, free: 8.113 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.533e-05/0.1031, allocations: 4 kB / 445.1 MB, free: 8.109 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/0.1034, allocations: 121 kB / 445.2 MB, free: 7.973 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.1034, allocations: 0 / 445.2 MB, free: 7.973 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.1034, allocations: 3.984 kB / 445.2 MB, free: 7.969 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.1034, allocations: 0 / 445.2 MB, free: 7.969 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.296e-05/0.1035, allocations: 27.98 kB / 445.2 MB, free: 7.941 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002847/0.1038, allocations: 269.6 kB / 445.5 MB, free: 7.625 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000197/0.104, allocations: 142.3 kB / 445.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.476e-05/0.1041, allocations: 33.77 kB / 445.7 MB, free: 7.41 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.1041, allocations: 0 / 445.7 MB, free: 7.41 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.8e-05/0.1042, allocations: 42.48 kB / 445.7 MB, free: 7.359 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 7.92e-07/0.1042, allocations: 0 / 445.7 MB, free: 7.359 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002524/0.1044, allocations: 85.52 kB / 445.8 MB, free: 7.27 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.1045, allocations: 85.11 kB / 445.9 MB, free: 7.168 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.559e-05/0.1046, allocations: 137 kB / 446 MB, free: 7.027 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.077e-06/0.1046, allocations: 25.7 kB / 446 MB, free: 6.996 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.814e-05/0.1046, allocations: 88.12 kB / 446.1 MB, free: 6.906 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.33e-05/0.1046, allocations: 7.844 kB / 446.1 MB, free: 6.898 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-06/0.1047, allocations: 4 kB / 446.1 MB, free: 6.895 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.065e-05/0.1047, allocations: 322.9 kB / 446.5 MB, free: 6.57 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.307e-05/0.1048, allocations: 11.98 kB / 446.5 MB, free: 6.559 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.146e-05/0.1048, allocations: 35.42 kB / 446.5 MB, free: 6.512 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.616e-05/0.1049, allocations: 16 kB / 446.5 MB, free: 6.496 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1049, allocations: 3.938 kB / 446.5 MB, free: 6.492 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001158/0.105, allocations: 73.61 kB / 446.6 MB, free: 6.414 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.105, allocations: 8 kB / 446.6 MB, free: 6.406 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.105, allocations: 0 / 446.6 MB, free: 6.406 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.1051, allocations: 0 / 446.6 MB, free: 6.406 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.735e-05/0.1051, allocations: 16.11 kB / 446.6 MB, free: 6.391 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.1051, allocations: 7.938 kB / 446.6 MB, free: 6.383 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.212e-05/0.1052, allocations: 7.906 kB / 446.6 MB, free: 6.375 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/0.1052, allocations: 0 / 446.6 MB, free: 6.375 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 6.326e-05/0.1053, allocations: 125.5 kB / 446.7 MB, free: 6.242 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.494e-05/0.1053, allocations: 45.69 kB / 446.8 MB, free: 6.191 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.712e-05/0.1054, allocations: 12.25 kB / 446.8 MB, free: 6.176 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1054, allocations: 3.984 kB / 446.8 MB, free: 6.172 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.1054, allocations: 8 kB / 446.8 MB, free: 6.164 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1054, allocations: 0 / 446.8 MB, free: 6.164 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001308/0.1055, allocations: 173.5 kB / 447 MB, free: 5.945 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1055, allocations: 0 / 447 MB, free: 5.945 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.288e-05/0.1056, allocations: 8 kB / 447 MB, free: 5.938 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.1056, allocations: 7.984 kB / 447 MB, free: 5.93 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.755e-06/0.1056, allocations: 0 / 447 MB, free: 5.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1056, allocations: 0 / 447 MB, free: 5.93 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1056, allocations: 0 / 447 MB, free: 5.93 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001404/0.1058, allocations: 188.5 kB / 447.2 MB, free: 5.727 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.428e-05/0.1058, allocations: 85.09 kB / 447.3 MB, free: 5.625 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.394e-05/0.1058, allocations: 0 / 447.3 MB, free: 5.625 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.999e-05/0.1059, allocations: 8 kB / 447.3 MB, free: 5.617 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.084e-05/0.106, allocations: 4 kB / 447.3 MB, free: 5.613 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-06/0.106, allocations: 4 kB / 447.3 MB, free: 5.609 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.769e-05/0.106, allocations: 111.2 kB / 447.4 MB, free: 5.5 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.106, allocations: 0 / 447.4 MB, free: 5.5 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001946/0.1062, allocations: 4 kB / 447.4 MB, free: 5.496 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.0003448/0.1066, allocations: 0.7015 MB / 448.1 MB, free: 4.766 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001369/0.1067, allocations: 39.91 kB / 448.1 MB, free: 4.727 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1067, allocations: 0 / 448.1 MB, free: 4.727 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.615e-05/0.1068, allocations: 11.94 kB / 448.2 MB, free: 4.715 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003725/0.1072, allocations: 36.02 kB / 448.2 MB, free: 4.684 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000674/0.1078, allocations: 0.5133 MB / 448.7 MB, free: 4.109 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001226/0.108, allocations: 0.6965 MB / 449.4 MB, free: 3.387 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.879e-05/0.108, allocations: 4 kB / 449.4 MB, free: 3.383 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.516e-05/0.108, allocations: 17.19 kB / 449.4 MB, free: 3.367 MB / 282.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1081, allocations: 0 / 449.4 MB, free: 3.367 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01095/0.119, allocations: 1.333 MB / 450.7 MB, free: 2.043 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001457/0.1192, allocations: 206.5 kB / 451 MB, free: 1.801 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.646/1.765, allocations: 3.938 kB / 451 MB, free: 1.797 MB / 282.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample1.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1_res.mat does not exist to compare? outputFormat=mat