Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001262/0.001262, allocations: 121.2 kB / 17.78 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001262/0.001262, allocations: 200.6 kB / 18.73 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 247 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2173/0.2173, allocations: 46.12 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002096/0.002097, allocations: 75.88 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3697/0.3718, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.00278/0.3746, allocations: 1.567 MB / 0.5321 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000245/0.3749, allocations: 63.27 kB / 0.5322 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.549e-05/0.3749, allocations: 1.938 kB / 0.5322 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001462/0.3751, allocations: 25.72 kB / 0.5322 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.262e-05/0.3751, allocations: 3.938 kB / 0.5322 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001378/0.3753, allocations: 25.66 kB / 0.5323 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.3754, allocations: 65.83 kB / 0.5323 GB, free: 12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002685/0.3757, allocations: 124.8 kB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.878e-05/0.3757, allocations: 38.58 kB / 0.5325 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.339e-05/0.3758, allocations: 42.09 kB / 0.5325 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.752e-05/0.3758, allocations: 8.938 kB / 0.5325 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.988e-05/0.3759, allocations: 7.719 kB / 0.5325 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.286e-05/0.376, allocations: 68.78 kB / 0.5326 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.148e-05/0.376, allocations: 71.91 kB / 0.5327 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000198/0.3762, allocations: 148.4 kB / 0.5328 GB, free: 11.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3763, allocations: 1.344 kB / 0.5328 GB, free: 11.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3763, allocations: 0 / 0.5328 GB, free: 11.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.3763, allocations: 0 / 0.5328 GB, free: 11.68 MB / 398.1 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.0005555/0.3768, allocations: 450 kB / 0.5332 GB, free: 11.24 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.3769, allocations: 12.91 kB / 0.5332 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.504e-05/0.377, allocations: 63.34 kB / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.888e-05/0.377, allocations: 17.72 kB / 0.5333 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002359/0.3773, allocations: 223.4 kB / 0.5335 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.3773, allocations: 13.06 kB / 0.5335 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.916e-05/0.3773, allocations: 22.12 kB / 0.5336 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000377/0.3777, allocations: 210.2 kB / 0.5338 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.3777, allocations: 0 / 0.5338 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.3777, allocations: 9.375 kB / 0.5338 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.3778, allocations: 5.5 kB / 0.5338 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002273/0.378, allocations: 137 kB / 0.5339 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007138/0.3787, allocations: 0.5112 MB / 0.5344 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001001/0.3788, allocations: 41.34 kB / 0.5345 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.887e-05/0.3789, allocations: 32.56 kB / 0.5345 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.3789, allocations: 0 / 0.5345 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.379, allocations: 31.84 kB / 0.5345 GB, free: 10.17 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.379, allocations: 0 / 0.5345 GB, free: 10.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002506/0.3792, allocations: 78.91 kB / 0.5346 GB, free: 10.12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.3793, allocations: 59.41 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.245e-05/0.3794, allocations: 112.2 kB / 0.5348 GB, free: 9.938 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.3794, allocations: 25.7 kB / 0.5348 GB, free: 9.906 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.3795, allocations: 142.1 kB / 0.5349 GB, free: 9.773 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.342e-05/0.3795, allocations: 18.33 kB / 0.5349 GB, free: 9.758 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.45e-05/0.3796, allocations: 13.69 kB / 0.5349 GB, free: 9.742 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.3797, allocations: 320.1 kB / 0.5352 GB, free: 9.422 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.453e-05/0.3798, allocations: 11.39 kB / 0.5353 GB, free: 9.418 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.85e-05/0.3798, allocations: 19.3 kB / 0.5353 GB, free: 9.406 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.459e-05/0.3799, allocations: 37.22 kB / 0.5353 GB, free: 9.383 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.38, allocations: 0 / 0.5353 GB, free: 9.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001322/0.3801, allocations: 71.84 kB / 0.5354 GB, free: 9.328 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.3801, allocations: 4.688 kB / 0.5354 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.3801, allocations: 0 / 0.5354 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.3801, allocations: 1.188 kB / 0.5354 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.427e-05/0.3802, allocations: 15.8 kB / 0.5354 GB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.3803, allocations: 5.094 kB / 0.5354 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.886e-05/0.3803, allocations: 5.75 kB / 0.5354 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.3803, allocations: 1.094 kB / 0.5354 GB, free: 9.312 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001214/0.3804, allocations: 143.2 kB / 0.5356 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.632e-05/0.3805, allocations: 6.109 kB / 0.5356 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.043e-05/0.3805, allocations: 5.094 kB / 0.5356 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.3805, allocations: 1.219 kB / 0.5356 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3805, allocations: 0 / 0.5356 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.3805, allocations: 1.125 kB / 0.5356 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000419/0.3809, allocations: 374.5 kB / 0.5359 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3809, allocations: 0 / 0.5359 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.427e-05/0.381, allocations: 12.02 kB / 0.5359 GB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.381, allocations: 1.062 kB / 0.5359 GB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.381, allocations: 0 / 0.5359 GB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.381, allocations: 1.062 kB / 0.5359 GB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/0.381, allocations: 3.938 kB / 0.5359 GB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001962/0.3812, allocations: 171.5 kB / 0.5361 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.49e-05/0.3813, allocations: 82.28 kB / 0.5362 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.194e-05/0.3813, allocations: 4.844 kB / 0.5362 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.34e-05/0.3814, allocations: 2.188 kB / 0.5362 GB, free: 8.535 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.767e-05/0.3814, allocations: 8.859 kB / 0.5362 GB, free: 8.527 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.3814, allocations: 2.562 kB / 0.5362 GB, free: 8.527 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.627e-05/0.3815, allocations: 88.89 kB / 0.5363 GB, free: 8.445 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3815, allocations: 0 / 0.5363 GB, free: 8.445 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000227/0.3817, allocations: 39.16 kB / 0.5363 GB, free: 8.422 MB / 398.1 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 (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.0005691/0.3823, allocations: 0.7066 MB / 0.537 GB, free: 7.734 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001334/0.3824, allocations: 28.27 kB / 0.537 GB, free: 7.727 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3824, allocations: 0 / 0.537 GB, free: 7.727 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.416e-05/0.3825, allocations: 28.3 kB / 0.5371 GB, free: 7.711 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.3828, allocations: 11.78 kB / 0.5371 GB, free: 7.707 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001545/0.3843, allocations: 1.445 MB / 0.5385 GB, free: 6.383 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003908/0.3847, allocations: 0.7331 MB / 0.5392 GB, free: 5.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.559e-05/0.3848, allocations: 10.95 kB / 0.5392 GB, free: 5.652 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.623e-05/0.3848, allocations: 50.64 kB / 0.5393 GB, free: 5.605 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3848, allocations: 0 / 0.5393 GB, free: 5.605 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02145/0.4063, allocations: 1.935 MB / 0.5412 GB, free: 4.543 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.687/8.094, allocations: 2.125 kB / 0.5412 GB, free: 4.543 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches