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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001343/0.001343, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001441/0.001441, allocations: 214.9 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 230.5 MB / 257.4 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2285/0.2285, allocations: 46.93 MB / 360.8 MB, free: 4.246 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002553/0.002553, allocations: 75.88 kB / 0.4962 GB, free: 7.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3729/0.3754, allocations: 66.08 MB / 0.5607 GB, free: 4.297 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002752/0.3782, allocations: 1.574 MB / 0.5623 GB, free: 2.715 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002204/0.3784, allocations: 59.75 kB / 0.5623 GB, free: 2.656 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.537e-05/0.3785, allocations: 7.938 kB / 0.5623 GB, free: 2.648 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.3786, allocations: 23.78 kB / 0.5624 GB, free: 2.625 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.33e-05/0.3786, allocations: 7.938 kB / 0.5624 GB, free: 2.617 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001349/0.3788, allocations: 19.98 kB / 0.5624 GB, free: 2.598 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.3789, allocations: 71.81 kB / 0.5624 GB, free: 2.527 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002419/0.3791, allocations: 98.73 kB / 0.5625 GB, free: 2.426 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.136e-05/0.3792, allocations: 27.92 kB / 0.5626 GB, free: 2.398 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.7e-05/0.3793, allocations: 47.83 kB / 0.5626 GB, free: 2.352 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.533e-05/0.3793, allocations: 12 kB / 0.5626 GB, free: 2.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.867e-05/0.3793, allocations: 8 kB / 0.5626 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.112e-05/0.3794, allocations: 67.83 kB / 0.5627 GB, free: 2.266 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.255e-05/0.3795, allocations: 63.61 kB / 0.5628 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001978/0.3797, allocations: 155.2 kB / 0.5629 GB, free: 2.051 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3797, allocations: 0 / 0.5629 GB, free: 2.051 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3797, allocations: 0 / 0.5629 GB, free: 2.051 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.3797, allocations: 0 / 0.5629 GB, free: 2.051 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.0005056/0.3802, allocations: 370 kB / 0.5633 GB, free: 1.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.3802, allocations: 12.03 kB / 0.5633 GB, free: 1.648 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.279e-05/0.3803, allocations: 71.05 kB / 0.5633 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.002e-05/0.3803, allocations: 20.84 kB / 0.5634 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000223/0.3806, allocations: 158.3 kB / 0.5635 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.3806, allocations: 20.81 kB / 0.5635 GB, free: 1.348 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.485e-05/0.3806, allocations: 16.38 kB / 0.5635 GB, free: 1.332 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003604/0.381, allocations: 207.6 kB / 0.5637 GB, free: 1.125 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.381, allocations: 0 / 0.5637 GB, free: 1.125 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.011e-05/0.381, allocations: 12 kB / 0.5638 GB, free: 1.113 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.381, allocations: 4 kB / 0.5638 GB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000241/0.3812, allocations: 137.6 kB / 0.5639 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006885/0.3819, allocations: 486.8 kB / 0.5644 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.354e-05/0.382, allocations: 34.56 kB / 0.5644 GB, free: 424 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.241e-05/0.3821, allocations: 28.97 kB / 0.5644 GB, free: 392 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.43e-05/0.3821, allocations: 4 kB / 0.5644 GB, free: 388 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.3821, allocations: 30.56 kB / 0.5644 GB, free: 348 kB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.173e-06/0.3821, allocations: 0 / 0.5644 GB, free: 348 kB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002419/0.3824, allocations: 81.56 kB / 0.5645 GB, free: 260 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.3824, allocations: 59.33 kB / 0.5646 GB, free: 188 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.644e-05/0.3825, allocations: 109.9 kB / 0.5647 GB, free: 68 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.075e-05/0.3825, allocations: 29.69 kB / 0.5647 GB, free: 32 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.3826, allocations: 140.1 kB / 0.5648 GB, free: 15.89 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.13e-05/0.3827, allocations: 15.91 kB / 0.5649 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.642e-05/0.3827, allocations: 17.7 kB / 0.5649 GB, free: 15.85 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.3828, allocations: 318.8 kB / 0.5652 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.708e-05/0.3829, allocations: 19.92 kB / 0.5652 GB, free: 15.51 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.196e-05/0.3829, allocations: 8 kB / 0.5652 GB, free: 15.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.976e-05/0.383, allocations: 36.84 kB / 0.5652 GB, free: 15.46 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.383, allocations: 0 / 0.5652 GB, free: 15.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001378/0.3831, allocations: 69.56 kB / 0.5653 GB, free: 15.39 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.3831, allocations: 8 kB / 0.5653 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.3831, allocations: 448 / 0.5653 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.3832, allocations: 0 / 0.5653 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.639e-05/0.3832, allocations: 8 kB / 0.5653 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.3832, allocations: 0 / 0.5653 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.613e-05/0.3833, allocations: 19.92 kB / 0.5653 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.3833, allocations: 0 / 0.5653 GB, free: 15.36 MB / 414.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.000116/0.3834, allocations: 133.8 kB / 0.5655 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.536e-05/0.3834, allocations: 4 kB / 0.5655 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.453e-05/0.3834, allocations: 12.05 kB / 0.5655 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3834, allocations: 0 / 0.5655 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.3835, allocations: 0 / 0.5655 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.3835, allocations: 4 kB / 0.5655 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004332/0.3839, allocations: 349.5 kB / 0.5658 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3839, allocations: 0 / 0.5658 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.405e-05/0.3839, allocations: 8 kB / 0.5658 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3839, allocations: 0 / 0.5658 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.3839, allocations: 7.984 kB / 0.5658 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3839, allocations: 0 / 0.5658 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3839, allocations: 3.938 kB / 0.5658 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000191/0.3841, allocations: 159.5 kB / 0.566 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.317e-05/0.3842, allocations: 11.95 kB / 0.566 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.3842, allocations: 0 / 0.566 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.478e-05/0.3842, allocations: 3.984 kB / 0.566 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.024e-05/0.3842, allocations: 15.88 kB / 0.566 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.3842, allocations: 0 / 0.566 GB, free: 14.58 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.049e-05/0.3843, allocations: 87.27 kB / 0.5661 GB, free: 14.49 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3843, allocations: 0 / 0.5661 GB, free: 14.49 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002401/0.3845, allocations: 31.78 kB / 0.5661 GB, free: 14.46 MB / 414.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.0006162/0.3852, allocations: 0.7048 MB / 0.5668 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001415/0.3853, allocations: 32.03 kB / 0.5669 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.3853, allocations: 4 kB / 0.5669 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.957e-05/0.3853, allocations: 12 kB / 0.5669 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003551/0.3857, allocations: 29.83 kB / 0.5669 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.3873, allocations: 1.447 MB / 0.5683 GB, free: 12.13 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00038/0.3877, allocations: 0.7275 MB / 0.569 GB, free: 11.38 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.102e-05/0.3877, allocations: 7.781 kB / 0.569 GB, free: 11.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.026e-05/0.3878, allocations: 51.41 kB / 0.5691 GB, free: 11.32 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3878, allocations: 0 / 0.5691 GB, free: 11.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0277/0.4155, allocations: 2.082 MB / 0.5711 GB, free: 9.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.72, allocations: 2.672 kB / 0.5711 GB, free: 9.34 MB / 414.1 MB " [Timeout remaining time 648] (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 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.773490444058552]