Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 170 kB / 23.94 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9401/0.9401, allocations: 177.1 MB / 204.2 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2811/0.2811, allocations: 32.79 MB / 293.5 MB, free: 1.219 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.485e-06/2.485e-06, allocations: 0 / 439.6 MB, free: 4.262 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.78e-05/3.029e-05, allocations: 3.969 kB / 439.6 MB, free: 4.258 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003502/0.003532, allocations: 1.546 MB / 441.1 MB, free: 2.699 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004469/0.003979, allocations: 63.77 kB / 441.2 MB, free: 2.637 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.396e-05/0.004053, allocations: 3.938 kB / 441.2 MB, free: 2.633 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001462/0.004199, allocations: 23.78 kB / 441.2 MB, free: 2.609 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 2.101e-05/0.00422, allocations: 7.922 kB / 441.2 MB, free: 2.602 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001749/0.004395, allocations: 27.97 kB / 441.2 MB, free: 2.574 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000117/0.004512, allocations: 67.81 kB / 441.3 MB, free: 2.508 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002291/0.004741, allocations: 80.22 kB / 441.4 MB, free: 2.422 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.083e-05/0.004812, allocations: 55.88 kB / 441.4 MB, free: 2.367 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.451e-05/0.004877, allocations: 35.89 kB / 441.5 MB, free: 2.332 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.909e-05/0.004906, allocations: 8 kB / 441.5 MB, free: 2.324 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.563e-05/0.004921, allocations: 12 kB / 441.5 MB, free: 2.312 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.204e-05/0.004994, allocations: 71.8 kB / 441.6 MB, free: 2.242 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.48e-05/0.005038, allocations: 35.91 kB / 441.6 MB, free: 2.207 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001665/0.005205, allocations: 151.4 kB / 441.7 MB, free: 2.059 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.005209, allocations: 0 / 441.7 MB, free: 2.059 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.00521, allocations: 4 kB / 441.7 MB, free: 2.055 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.005216, allocations: 0 / 441.7 MB, free: 2.055 MB / 410.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.0004388/0.005655, allocations: 362.1 kB / 442.1 MB, free: 1.672 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.005704, allocations: 8.031 kB / 442.1 MB, free: 1.664 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.392e-05/0.005798, allocations: 75.11 kB / 442.2 MB, free: 1.582 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.58e-05/0.005833, allocations: 28.8 kB / 442.2 MB, free: 1.555 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.006018, allocations: 145.6 kB / 442.4 MB, free: 1.387 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.006036, allocations: 20.88 kB / 442.4 MB, free: 1.367 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.245e-05/0.006059, allocations: 20.38 kB / 442.4 MB, free: 1.348 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002976/0.006356, allocations: 200.6 kB / 442.6 MB, free: 1.145 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.006366, allocations: 192 / 442.6 MB, free: 1.145 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.006384, allocations: 12.38 kB / 442.6 MB, free: 1.133 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.006392, allocations: 7.938 kB / 442.6 MB, free: 1.125 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001663/0.006558, allocations: 129.9 kB / 442.7 MB, free: 1 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005809/0.007139, allocations: 463.3 kB / 443.2 MB, free: 0.5039 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.609e-05/0.007225, allocations: 46.44 kB / 443.2 MB, free: 460 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.722e-05/0.007273, allocations: 28.97 kB / 443.3 MB, free: 428 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.00729, allocations: 4 kB / 443.3 MB, free: 424 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.007316, allocations: 30.56 kB / 443.3 MB, free: 384 kB / 410.7 MB Notification: Performance of pre-optimization done (n=5): time 1.463e-06/0.007317, allocations: 3.938 kB / 443.3 MB, free: 380 kB / 410.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002975/0.007615, allocations: 77.66 kB / 443.4 MB, free: 296 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.007653, allocations: 51.41 kB / 443.4 MB, free: 232 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.35e-05/0.007727, allocations: 117.8 kB / 443.5 MB, free: 104 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.007741, allocations: 25.7 kB / 443.6 MB, free: 72 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1883/0.196, allocations: 146.7 kB / 443.7 MB, free: 46.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.946e-05/0.1961, allocations: 19.2 kB / 443.7 MB, free: 46.37 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.715e-05/0.1961, allocations: 18.22 kB / 443.7 MB, free: 46.36 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.234e-05/0.1961, allocations: 316.2 kB / 444.1 MB, free: 46.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.664e-05/0.1962, allocations: 10.34 kB / 444.1 MB, free: 46.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.5e-05/0.1962, allocations: 15.56 kB / 444.1 MB, free: 46.04 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.631e-05/0.1963, allocations: 31.73 kB / 444.1 MB, free: 46.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1963, allocations: 4.656 kB / 444.1 MB, free: 46.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001058/0.1964, allocations: 65.86 kB / 444.2 MB, free: 46 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1964, allocations: 5.312 kB / 444.2 MB, free: 46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1965, allocations: 2.125 kB / 444.2 MB, free: 46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.1965, allocations: 0 / 444.2 MB, free: 46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.529e-05/0.1965, allocations: 12.58 kB / 444.2 MB, free: 46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.1966, allocations: 3.75 kB / 444.2 MB, free: 46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.171e-05/0.1966, allocations: 10.08 kB / 444.2 MB, free: 46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-06/0.1966, allocations: 2.594 kB / 444.2 MB, free: 46 MB / 410.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.496e-05/0.1967, allocations: 137.6 kB / 444.3 MB, free: 45.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.514e-05/0.1967, allocations: 2.719 kB / 444.3 MB, free: 45.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.137e-05/0.1967, allocations: 6.75 kB / 444.4 MB, free: 45.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.1967, allocations: 0 / 444.4 MB, free: 45.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1967, allocations: 6.594 kB / 444.4 MB, free: 45.88 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.1967, allocations: 5.938 kB / 444.4 MB, free: 45.88 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002758/0.197, allocations: 333.1 kB / 444.7 MB, free: 45.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.197, allocations: 1.594 kB / 444.7 MB, free: 45.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.538e-05/0.197, allocations: 10.22 kB / 444.7 MB, free: 45.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.197, allocations: 6.562 kB / 444.7 MB, free: 45.62 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.197, allocations: 3.625 kB / 444.7 MB, free: 45.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.197, allocations: 1.938 kB / 444.7 MB, free: 45.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.197, allocations: 0 / 444.7 MB, free: 45.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.443e-05/0.1971, allocations: 159.3 kB / 444.9 MB, free: 45.49 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.767e-06/0.1971, allocations: 7.016 kB / 444.9 MB, free: 45.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.119e-05/0.1971, allocations: 7.812 kB / 444.9 MB, free: 45.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.874e-05/0.1972, allocations: 4.562 kB / 444.9 MB, free: 45.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.13e-05/0.1972, allocations: 6.688 kB / 444.9 MB, free: 45.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.524e-06/0.1972, allocations: 0 / 444.9 MB, free: 45.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.678e-05/0.1972, allocations: 95.75 kB / 445 MB, free: 45.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1972, allocations: 1.531 kB / 445 MB, free: 45.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001679/0.1974, allocations: 31.8 kB / 445 MB, free: 45.4 MB / 410.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 (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.0002477/0.1976, allocations: 0.7056 MB / 445.7 MB, free: 44.74 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.174e-05/0.1977, allocations: 38.3 kB / 445.8 MB, free: 44.74 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.1977, allocations: 0 / 445.8 MB, free: 44.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.967e-05/0.1978, allocations: 18.61 kB / 445.8 MB, free: 44.74 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002671/0.198, allocations: 7.172 kB / 445.8 MB, free: 44.74 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008384/0.1989, allocations: 1.457 MB / 447.2 MB, free: 43.54 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.722e-05/0.1989, allocations: 122 kB / 447.4 MB, free: 43.46 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.841e-05/0.199, allocations: 6.406 kB / 447.4 MB, free: 43.46 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.139e-05/0.199, allocations: 49.69 kB / 447.4 MB, free: 43.46 MB / 410.7 MB Notification: Performance of SimCode: time 6.61e-07/0.199, allocations: 0 / 447.4 MB, free: 43.46 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01762/0.2166, allocations: 2.659 MB / 450.1 MB, free: 42.54 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.645/6.862, allocations: 3.734 kB / 450.1 MB, free: 42.54 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 8.98808885551989]