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.001349/0.001349, allocations: 117.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00153/0.00153, allocations: 208.5 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2254/0.2254, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 80.19 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3486/0.3501, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002554/0.3527, allocations: 1.552 MB / 0.532 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002153/0.3529, allocations: 68.09 kB / 0.5321 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.507e-05/0.353, allocations: 5.156 kB / 0.5321 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001607/0.3531, allocations: 22.98 kB / 0.5321 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.874e-05/0.3532, allocations: 7.922 kB / 0.5321 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001401/0.3533, allocations: 21.55 kB / 0.5321 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001076/0.3534, allocations: 65.12 kB / 0.5322 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002644/0.3537, allocations: 130.5 kB / 0.5323 GB, free: 12 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.439e-05/0.3537, allocations: 34.67 kB / 0.5324 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.546e-05/0.3538, allocations: 41.94 kB / 0.5324 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.514e-05/0.3539, allocations: 7.75 kB / 0.5324 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.93e-05/0.3539, allocations: 8.938 kB / 0.5324 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.374e-05/0.354, allocations: 75.67 kB / 0.5325 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.687e-05/0.3541, allocations: 64.45 kB / 0.5326 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001732/0.3542, allocations: 151.2 kB / 0.5327 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3543, allocations: 0 / 0.5327 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.858e-06/0.3543, allocations: 0 / 0.5327 GB, free: 11.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.3543, allocations: 3.938 kB / 0.5327 GB, free: 11.75 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.0005232/0.3548, allocations: 435.3 kB / 0.5331 GB, free: 11.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.3549, allocations: 9.625 kB / 0.5331 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.747e-05/0.355, allocations: 70.06 kB / 0.5332 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.261e-05/0.355, allocations: 22.38 kB / 0.5332 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/0.3552, allocations: 219.4 kB / 0.5334 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.16e-05/0.3553, allocations: 17.06 kB / 0.5334 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.802e-05/0.3553, allocations: 26.06 kB / 0.5335 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003924/0.3557, allocations: 208.7 kB / 0.5337 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.3557, allocations: 1.094 kB / 0.5337 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.3558, allocations: 9.938 kB / 0.5337 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/0.3558, allocations: 5.375 kB / 0.5337 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002462/0.356, allocations: 136.6 kB / 0.5338 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007305/0.3568, allocations: 0.5103 MB / 0.5343 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.998e-05/0.3569, allocations: 39.19 kB / 0.5343 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.812e-05/0.3569, allocations: 27.97 kB / 0.5344 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.013e-05/0.357, allocations: 7.984 kB / 0.5344 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.357, allocations: 36.03 kB / 0.5344 GB, free: 10.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.272e-06/0.357, allocations: 0 / 0.5344 GB, free: 10.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002717/0.3573, allocations: 77.48 kB / 0.5345 GB, free: 10.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.062e-05/0.3574, allocations: 52.47 kB / 0.5345 GB, free: 10.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.3575, allocations: 107.8 kB / 0.5346 GB, free: 10.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.3575, allocations: 30.73 kB / 0.5347 GB, free: 9.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.665e-05/0.3576, allocations: 145.7 kB / 0.5348 GB, free: 9.844 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.84e-05/0.3576, allocations: 9.875 kB / 0.5348 GB, free: 9.836 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.821e-05/0.3577, allocations: 21.92 kB / 0.5348 GB, free: 9.812 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.3578, allocations: 316 kB / 0.5351 GB, free: 9.496 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.469e-05/0.3579, allocations: 14.73 kB / 0.5352 GB, free: 9.488 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.242e-05/0.3579, allocations: 7.312 kB / 0.5352 GB, free: 9.488 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.064e-05/0.358, allocations: 36.28 kB / 0.5352 GB, free: 9.465 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.358, allocations: 1.406 kB / 0.5352 GB, free: 9.465 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001225/0.3581, allocations: 67.52 kB / 0.5353 GB, free: 9.414 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3581, allocations: 4.312 kB / 0.5353 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.3582, allocations: 1.188 kB / 0.5353 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.3582, allocations: 3.938 kB / 0.5353 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.741e-05/0.3583, allocations: 12.77 kB / 0.5353 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.3583, allocations: 0 / 0.5353 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.14e-05/0.3583, allocations: 9.469 kB / 0.5353 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.3583, allocations: 1.531 kB / 0.5353 GB, free: 9.398 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.0001296/0.3585, allocations: 143.6 kB / 0.5354 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.699e-05/0.3585, allocations: 6.734 kB / 0.5354 GB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.229e-05/0.3585, allocations: 7.969 kB / 0.5354 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.3585, allocations: 1.375 kB / 0.5354 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3585, allocations: 0 / 0.5354 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3585, allocations: 1.375 kB / 0.5355 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003864/0.3589, allocations: 370 kB / 0.5358 GB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.3589, allocations: 5.375 kB / 0.5358 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.278e-05/0.359, allocations: 8.312 kB / 0.5358 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.359, allocations: 4 kB / 0.5358 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.188e-06/0.359, allocations: 9.297 kB / 0.5358 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.359, allocations: 0 / 0.5358 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.359, allocations: 7.875 kB / 0.5358 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001675/0.3592, allocations: 154.8 kB / 0.536 GB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.042e-05/0.3593, allocations: 82.47 kB / 0.5361 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.097e-05/0.3593, allocations: 9.375 kB / 0.5361 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.189e-05/0.3594, allocations: 1.375 kB / 0.5361 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.432e-05/0.3594, allocations: 6.688 kB / 0.5361 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.377e-06/0.3594, allocations: 1.375 kB / 0.5361 GB, free: 8.613 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.53e-05/0.3594, allocations: 93.06 kB / 0.5362 GB, free: 8.527 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3594, allocations: 0 / 0.5362 GB, free: 8.527 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002449/0.3597, allocations: 30.81 kB / 0.5362 GB, free: 8.512 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.0005161/0.3602, allocations: 0.7059 MB / 0.5369 GB, free: 7.824 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001374/0.3604, allocations: 32.66 kB / 0.5369 GB, free: 7.812 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3604, allocations: 4 kB / 0.5369 GB, free: 7.809 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.399e-05/0.3604, allocations: 20.3 kB / 0.5369 GB, free: 7.801 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003099/0.3607, allocations: 13.44 kB / 0.537 GB, free: 7.793 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/0.3622, allocations: 1.447 MB / 0.5384 GB, free: 6.469 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.3626, allocations: 0.7376 MB / 0.5391 GB, free: 5.742 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.731e-05/0.3626, allocations: 11.14 kB / 0.5391 GB, free: 5.734 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.767e-05/0.3627, allocations: 50.78 kB / 0.5391 GB, free: 5.688 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3627, allocations: 0 / 0.5391 GB, free: 5.688 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01994/0.3827, allocations: 1.947 MB / 0.541 GB, free: 4.621 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.512/7.895, allocations: 9.328 kB / 0.5411 GB, free: 4.621 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