Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked",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.001312/0.001312, allocations: 171.4 kB / 16.15 MB, free: 5.66 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.461/1.461, allocations: 205.4 MB / 222.3 MB, free: 9.02 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.0008874/0.0008875, allocations: 91.02 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.08073/0.08073, allocations: 12.6 MB / 331.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004245/0.0004246, allocations: 16 kB / 392.8 MB, free: 65.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09647/0.09691, allocations: 50.36 MB / 443.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked): time 0.001696/0.09868, allocations: 1.266 MB / 444.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006473/0.09934, allocations: 495.8 kB / 444.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.986e-05/0.09944, allocations: 4 kB / 444.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.328e-05/0.09948, allocations: 7.938 kB / 444.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001272/0.09961, allocations: 7.922 kB / 444.9 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002335/0.09985, allocations: 35.91 kB / 444.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.101e-05/0.09994, allocations: 39.86 kB / 445 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.757e-05/0.1, allocations: 7.984 kB / 445 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.283e-05/0.1001, allocations: 19.92 kB / 445 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.257e-05/0.1002, allocations: 19.8 kB / 445 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.682e-05/0.1002, allocations: 0 / 445 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.148e-05/0.1002, allocations: 8 kB / 445 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.156e-05/0.1003, allocations: 11.94 kB / 445.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.265e-05/0.1003, allocations: 49.5 kB / 445.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.296e-05/0.1004, allocations: 39.81 kB / 445.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1004, allocations: 4 kB / 445.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1004, allocations: 0 / 445.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.1004, allocations: 0 / 445.1 MB, free: 13.29 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004213/0.1009, allocations: 359.5 kB / 445.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.1009, allocations: 12.03 kB / 445.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.882e-05/0.1009, allocations: 34.75 kB / 445.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.284e-05/0.101, allocations: 8.844 kB / 445.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001382/0.1011, allocations: 188.2 kB / 445.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.338e-06/0.1011, allocations: 4.375 kB / 445.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.177e-05/0.1012, allocations: 4.359 kB / 445.7 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002207/0.1014, allocations: 101.2 kB / 445.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.1014, allocations: 0 / 445.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.1014, allocations: 0 / 445.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.1014, allocations: 4 kB / 445.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.63e-05/0.1015, allocations: 23.92 kB / 445.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002559/0.1018, allocations: 273.6 kB / 446.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.295e-05/0.1019, allocations: 41.16 kB / 446.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.965e-05/0.1019, allocations: 25.77 kB / 446.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.1019, allocations: 0 / 446.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.968e-05/0.102, allocations: 38.56 kB / 446.2 MB, free: 12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 8.51e-07/0.102, allocations: 0 / 446.2 MB, free: 12 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.000224/0.1022, allocations: 73.52 kB / 446.3 MB, free: 11.92 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.418e-05/0.1022, allocations: 81.11 kB / 446.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.845e-05/0.1023, allocations: 140.1 kB / 446.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.236e-06/0.1024, allocations: 25.7 kB / 446.5 MB, free: 11.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.886e-05/0.1024, allocations: 92.12 kB / 446.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.289e-05/0.1024, allocations: 0 / 446.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.178e-06/0.1024, allocations: 0 / 446.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.644e-05/0.1025, allocations: 318.7 kB / 447 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.793e-05/0.1025, allocations: 15.98 kB / 447 MB, free: 11.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.338e-05/0.1026, allocations: 21.72 kB / 447 MB, free: 11.19 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.702e-05/0.1026, allocations: 29.7 kB / 447 MB, free: 11.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.1026, allocations: 0 / 447 MB, free: 11.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.901e-05/0.1027, allocations: 69.59 kB / 447.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.1028, allocations: 7.984 kB / 447.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.1028, allocations: 0 / 447.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.1028, allocations: 3.938 kB / 447.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.385e-05/0.1029, allocations: 8 kB / 447.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.241e-06/0.1029, allocations: 0 / 447.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.448e-05/0.1029, allocations: 4 kB / 447.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.1029, allocations: 0 / 447.1 MB, free: 11.06 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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.467e-05/0.103, allocations: 126.7 kB / 447.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.738e-05/0.103, allocations: 41.55 kB / 447.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.797e-05/0.1031, allocations: 15.81 kB / 447.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.1031, allocations: 7.984 kB / 447.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.1031, allocations: 0 / 447.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.1031, allocations: 0 / 447.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001165/0.1032, allocations: 169.6 kB / 447.5 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.1032, allocations: 0 / 447.5 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.321e-05/0.1033, allocations: 8 kB / 447.5 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.1033, allocations: 4.031 kB / 447.5 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.1033, allocations: 3.938 kB / 447.5 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1033, allocations: 0 / 447.5 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1033, allocations: 4 kB / 447.5 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001213/0.1034, allocations: 164.3 kB / 447.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.939e-05/0.1035, allocations: 93 kB / 447.7 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.1035, allocations: 4 kB / 447.7 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.118e-05/0.1036, allocations: 4 kB / 447.7 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.827e-05/0.1036, allocations: 7.984 kB / 447.7 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-06/0.1036, allocations: 0 / 447.7 MB, free: 10.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.401e-05/0.1037, allocations: 105.8 kB / 447.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1037, allocations: 0 / 447.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001919/0.1039, allocations: 4 kB / 447.9 MB, free: 10.21 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 (2): * Single equations (assignments): 2 * 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.0002807/0.1042, allocations: 0.6937 MB / 448.5 MB, free: 9.488 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001246/0.1043, allocations: 31.95 kB / 448.6 MB, free: 9.457 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1043, allocations: 0 / 448.6 MB, free: 9.457 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.801e-05/0.1043, allocations: 11.98 kB / 448.6 MB, free: 9.445 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/0.1047, allocations: 17.44 kB / 448.6 MB, free: 9.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008418/0.1055, allocations: 1.341 MB / 449.9 MB, free: 7.996 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001222/0.1057, allocations: 0.6887 MB / 450.6 MB, free: 7.281 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.331e-05/0.1057, allocations: 0 / 450.6 MB, free: 7.281 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.337e-05/0.1057, allocations: 23.36 kB / 450.7 MB, free: 7.258 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1057, allocations: 0 / 450.7 MB, free: 7.258 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01058/0.1163, allocations: 1.245 MB / 451.9 MB, free: 6.004 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001876/0.1165, allocations: 229.6 kB / 452.1 MB, free: 5.746 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.648/1.765, allocations: 0 / 452.1 MB, free: 5.746 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat