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.002228/0.002228, allocations: 172.4 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.46/1.46, 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.0007097/0.0007098, allocations: 85.69 kB / 270.7 MB, free: 8.246 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.07419/0.07419, allocations: 12.59 MB / 331.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004044/0.0004049, allocations: 8.234 kB / 392.8 MB, free: 65.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09845/0.09888, allocations: 50.38 MB / 443.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.001636/0.1006, allocations: 1.258 MB / 444.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004115/0.101, allocations: 131.6 kB / 444.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.043e-05/0.1011, allocations: 3.938 kB / 444.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.638e-05/0.1012, allocations: 4 kB / 444.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001274/0.1013, allocations: 7.922 kB / 444.6 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000263/0.1016, allocations: 31.97 kB / 444.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.69e-05/0.1017, allocations: 35.86 kB / 444.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.1018, allocations: 12 kB / 444.6 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.127e-05/0.1018, allocations: 15.88 kB / 444.6 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.642e-05/0.1019, allocations: 11.92 kB / 444.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.423e-05/0.1019, allocations: 0 / 444.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.101e-05/0.1019, allocations: 0 / 444.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.483e-05/0.102, allocations: 15.92 kB / 444.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.57e-05/0.102, allocations: 49.5 kB / 444.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.209e-05/0.1021, allocations: 39.83 kB / 444.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1021, allocations: 0 / 444.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1022, allocations: 0 / 444.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.948e-06/0.1022, allocations: 0 / 444.8 MB, free: 13.69 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004079/0.1026, allocations: 363.5 kB / 445.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.1026, allocations: 12.03 kB / 445.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.902e-05/0.1027, allocations: 34.75 kB / 445.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.868e-05/0.1027, allocations: 8.844 kB / 445.2 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001773/0.1029, allocations: 189.6 kB / 445.4 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.1029, allocations: 4.375 kB / 445.4 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.182e-05/0.1029, allocations: 4.375 kB / 445.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002825/0.1032, allocations: 125.5 kB / 445.5 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.1032, allocations: 3.938 kB / 445.5 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.904e-06/0.1033, allocations: 0 / 445.5 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.1033, allocations: 0 / 445.5 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.026e-05/0.1034, allocations: 23.98 kB / 445.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002783/0.1036, allocations: 277.5 kB / 445.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001772/0.1038, allocations: 134.2 kB / 445.9 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.159e-05/0.1039, allocations: 45.7 kB / 446 MB, free: 12.28 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.1039, allocations: 0 / 446 MB, free: 12.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.624e-05/0.104, allocations: 34.56 kB / 446 MB, free: 12.24 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.52e-07/0.104, allocations: 0 / 446 MB, free: 12.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002483/0.1042, allocations: 81.8 kB / 446.1 MB, free: 12.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.1043, allocations: 85.09 kB / 446.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.924e-05/0.1044, allocations: 130.5 kB / 446.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.257e-06/0.1044, allocations: 25.7 kB / 446.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.079e-05/0.1044, allocations: 96.03 kB / 446.4 MB, free: 11.78 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.364e-05/0.1045, allocations: 0 / 446.4 MB, free: 11.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.976e-06/0.1045, allocations: 0 / 446.4 MB, free: 11.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.718e-05/0.1045, allocations: 319 kB / 446.7 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.812e-05/0.1046, allocations: 11.98 kB / 446.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.822e-05/0.1046, allocations: 35.42 kB / 446.8 MB, free: 11.4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.315e-05/0.1047, allocations: 55.36 kB / 446.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.1047, allocations: 3.938 kB / 446.8 MB, free: 11.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001391/0.1049, allocations: 65.56 kB / 446.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.1049, allocations: 8.125 kB / 446.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.1049, allocations: 4 kB / 446.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.1049, allocations: 0 / 446.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.917e-05/0.105, allocations: 11.98 kB / 446.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.105, allocations: 0 / 446.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.448e-05/0.1051, allocations: 7.906 kB / 446.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.1051, allocations: 4 kB / 446.9 MB, free: 11.23 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.769e-05/0.1051, allocations: 117.8 kB / 447 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.159e-05/0.1052, allocations: 53.62 kB / 447.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.923e-05/0.1052, allocations: 16.23 kB / 447.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1052, allocations: 0 / 447.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1052, allocations: 0 / 447.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1053, allocations: 0 / 447.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001209/0.1054, allocations: 177.5 kB / 447.3 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1054, allocations: 3.938 kB / 447.3 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.447e-05/0.1054, allocations: 8 kB / 447.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.1054, allocations: 0 / 447.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.1055, allocations: 3.938 kB / 447.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1055, allocations: 0 / 447.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1055, allocations: 8 kB / 447.3 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001349/0.1056, allocations: 168.3 kB / 447.5 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.709e-05/0.1057, allocations: 93 kB / 447.6 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.1057, allocations: 4 kB / 447.6 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.633e-05/0.1057, allocations: 4 kB / 447.6 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.755e-05/0.1058, allocations: 7.984 kB / 447.6 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.1058, allocations: 0 / 447.6 MB, free: 10.47 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.702e-05/0.1058, allocations: 111.3 kB / 447.7 MB, free: 10.36 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1058, allocations: 0 / 447.7 MB, free: 10.36 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002191/0.1061, allocations: 4 kB / 447.7 MB, free: 10.36 MB / 298.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 (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.0002982/0.1064, allocations: 0.7092 MB / 448.4 MB, free: 9.617 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001229/0.1065, allocations: 31.97 kB / 448.4 MB, free: 9.586 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1065, allocations: 0 / 448.4 MB, free: 9.586 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.224e-05/0.1066, allocations: 16.19 kB / 448.4 MB, free: 9.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.1069, allocations: 24.02 kB / 448.5 MB, free: 9.547 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009795/0.1079, allocations: 1.341 MB / 449.8 MB, free: 8.098 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001455/0.1081, allocations: 0.6965 MB / 450.5 MB, free: 7.375 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.68e-05/0.1081, allocations: 4.047 kB / 450.5 MB, free: 7.371 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.572e-05/0.1081, allocations: 11.44 kB / 450.5 MB, free: 7.359 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1082, allocations: 0 / 450.5 MB, free: 7.359 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01108/0.1192, allocations: 1.262 MB / 451.8 MB, free: 6.094 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001683/0.1194, allocations: 218 kB / 452 MB, free: 5.84 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.607/1.726, allocations: 0 / 452 MB, free: 5.84 MB / 298.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