Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_MuxDemux",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.0009046/0.0009047, allocations: 175.3 kB / 16.72 MB, free: 5.082 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.123/1.123, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0006472/0.0006472, allocations: 93.34 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2911/0.2911, allocations: 43.57 MB / 363.1 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003514/0.0003515, allocations: 12 kB / 432.1 MB, free: 5.719 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09322/0.09359, allocations: 58.84 MB / 490.9 MB, free: 10.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001557/0.09519, allocations: 1.254 MB / 492.2 MB, free: 9.523 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001424/0.09536, allocations: 43.8 kB / 492.2 MB, free: 9.48 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.053e-05/0.09542, allocations: 4 kB / 492.2 MB, free: 9.477 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.09555, allocations: 15.86 kB / 492.2 MB, free: 9.461 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.331e-05/0.09558, allocations: 7.969 kB / 492.2 MB, free: 9.453 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 6.746e-05/0.09565, allocations: 15.98 kB / 492.3 MB, free: 9.438 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 9.116e-05/0.09575, allocations: 63.83 kB / 492.3 MB, free: 9.375 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002272/0.09598, allocations: 119.4 kB / 492.4 MB, free: 9.25 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.49e-05/0.09603, allocations: 15.92 kB / 492.4 MB, free: 9.234 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.673e-05/0.09607, allocations: 19.84 kB / 492.5 MB, free: 9.215 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.588e-05/0.09609, allocations: 4 kB / 492.5 MB, free: 9.211 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.775e-06/0.09611, allocations: 4 kB / 492.5 MB, free: 9.207 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.807e-05/0.09617, allocations: 55.89 kB / 492.5 MB, free: 9.152 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.806e-05/0.09623, allocations: 73.33 kB / 492.6 MB, free: 9.074 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001113/0.09635, allocations: 95.75 kB / 492.7 MB, free: 8.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.09636, allocations: 7.938 kB / 492.7 MB, free: 8.973 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.09637, allocations: 0 / 492.7 MB, free: 8.973 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.09638, allocations: 0 / 492.7 MB, free: 8.973 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0004027/0.09679, allocations: 411.8 kB / 493.1 MB, free: 8.523 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.09684, allocations: 16.03 kB / 493.1 MB, free: 8.508 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.63e-05/0.09692, allocations: 59.08 kB / 493.2 MB, free: 8.438 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.371e-05/0.09696, allocations: 24.66 kB / 493.2 MB, free: 8.414 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001787/0.09714, allocations: 216.2 kB / 493.4 MB, free: 8.164 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.09717, allocations: 12.81 kB / 493.4 MB, free: 8.152 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.475e-05/0.0972, allocations: 20.38 kB / 493.4 MB, free: 8.133 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003359/0.09754, allocations: 216.7 kB / 493.7 MB, free: 7.918 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.09756, allocations: 3.938 kB / 493.7 MB, free: 7.914 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.09757, allocations: 4 kB / 493.7 MB, free: 7.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.09759, allocations: 8 kB / 493.7 MB, free: 7.902 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002182/0.09781, allocations: 133.7 kB / 493.8 MB, free: 7.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000581/0.0984, allocations: 0.5216 MB / 494.3 MB, free: 7.195 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001/0.09851, allocations: 46.56 kB / 494.4 MB, free: 7.141 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.653e-05/0.09859, allocations: 32.97 kB / 494.4 MB, free: 7.105 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.237e-06/0.0986, allocations: 0 / 494.4 MB, free: 7.105 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.26e-05/0.09863, allocations: 38.55 kB / 494.4 MB, free: 7.059 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 2.064e-06/0.09864, allocations: 7.922 kB / 494.4 MB, free: 7.051 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002096/0.09885, allocations: 69.69 kB / 494.5 MB, free: 6.977 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.0989, allocations: 63.39 kB / 494.6 MB, free: 6.902 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.015e-05/0.09898, allocations: 105.8 kB / 494.7 MB, free: 6.789 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.092e-05/0.099, allocations: 25.7 kB / 494.7 MB, free: 6.758 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.142e-05/0.09907, allocations: 147.9 kB / 494.8 MB, free: 6.609 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.524e-05/0.0991, allocations: 15.75 kB / 494.9 MB, free: 6.594 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.515e-06/0.0991, allocations: 0 / 494.9 MB, free: 6.594 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.09921, allocations: 322.8 kB / 495.2 MB, free: 6.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.837e-05/0.09926, allocations: 12 kB / 495.2 MB, free: 6.258 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.1e-05/0.09929, allocations: 11.98 kB / 495.2 MB, free: 6.246 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.456e-05/0.09939, allocations: 44.78 kB / 495.2 MB, free: 6.199 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.09939, allocations: 0 / 495.2 MB, free: 6.199 MB / 378.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001125/0.09951, allocations: 65.59 kB / 495.3 MB, free: 6.129 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.09953, allocations: 4 kB / 495.3 MB, free: 6.125 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.09954, allocations: 4 kB / 495.3 MB, free: 6.121 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.09956, allocations: 0 / 495.3 MB, free: 6.121 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.558e-05/0.09963, allocations: 11.98 kB / 495.3 MB, free: 6.109 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.09964, allocations: 4 kB / 495.3 MB, free: 6.105 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.532e-05/0.09967, allocations: 4 kB / 495.3 MB, free: 6.102 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.09968, allocations: 0 / 495.3 MB, free: 6.102 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (5): * Single equations (assignments): 5 * 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 9.891e-05/0.09978, allocations: 145.7 kB / 495.5 MB, free: 5.949 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.098e-05/0.09981, allocations: 3.938 kB / 495.5 MB, free: 5.945 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.727e-05/0.09983, allocations: 7.969 kB / 495.5 MB, free: 5.941 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.09984, allocations: 4 kB / 495.5 MB, free: 5.938 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.09985, allocations: 3.938 kB / 495.5 MB, free: 5.934 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.09986, allocations: 4 kB / 495.5 MB, free: 5.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003298/0.1002, allocations: 374.9 kB / 495.9 MB, free: 5.508 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1002, allocations: 0 / 495.9 MB, free: 5.508 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.131e-05/0.1003, allocations: 15.92 kB / 495.9 MB, free: 5.492 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1003, allocations: 0 / 495.9 MB, free: 5.492 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/0.1003, allocations: 4 kB / 495.9 MB, free: 5.488 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1003, allocations: 0 / 495.9 MB, free: 5.488 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.1003, allocations: 11.94 kB / 495.9 MB, free: 5.477 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001348/0.1004, allocations: 151.5 kB / 496 MB, free: 5.312 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.997e-05/0.1005, allocations: 89 kB / 496.1 MB, free: 5.207 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.1005, allocations: 4 kB / 496.1 MB, free: 5.203 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.981e-05/0.1006, allocations: 0 / 496.1 MB, free: 5.203 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.612e-05/0.1006, allocations: 11.94 kB / 496.2 MB, free: 5.191 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.1006, allocations: 0 / 496.2 MB, free: 5.191 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.907e-05/0.1006, allocations: 91.27 kB / 496.2 MB, free: 5.102 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1006, allocations: 0 / 496.2 MB, free: 5.102 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002081/0.1009, allocations: 31.69 kB / 496.3 MB, free: 5.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (5): * Single equations (assignments): 5 * 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.0004515/0.1013, allocations: 0.7085 MB / 497 MB, free: 4.336 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001208/0.1014, allocations: 36.03 kB / 497 MB, free: 4.301 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1015, allocations: 0 / 497 MB, free: 4.301 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.638e-05/0.1015, allocations: 23.94 kB / 497 MB, free: 4.277 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.1018, allocations: 19.92 kB / 497.1 MB, free: 4.258 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.1028, allocations: 0.6907 MB / 497.7 MB, free: 3.504 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003558/0.1032, allocations: 0.7356 MB / 498.5 MB, free: 2.742 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.574e-05/0.1032, allocations: 47.42 kB / 498.5 MB, free: 2.695 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1032, allocations: 0 / 498.5 MB, free: 2.695 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.433/2.536, allocations: 1.758 MB / 0.4886 GB, free: 0.9375 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches