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.001699/0.001699, allocations: 117.7 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.001416/0.001415, allocations: 204.6 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.517/1.517, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2371/0.2371, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001705/0.001705, allocations: 79.88 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3942/0.3959, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002644/0.3986, allocations: 1.569 MB / 0.532 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002362/0.3989, allocations: 67.12 kB / 0.5321 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.929e-05/0.3989, allocations: 6.469 kB / 0.5321 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.3991, allocations: 18.52 kB / 0.5321 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.506e-05/0.3991, allocations: 3.938 kB / 0.5321 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001404/0.3993, allocations: 30.17 kB / 0.5322 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001055/0.3994, allocations: 60.52 kB / 0.5322 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002655/0.3996, allocations: 130.2 kB / 0.5323 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.759e-05/0.3997, allocations: 34.23 kB / 0.5324 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.353e-05/0.3998, allocations: 50.56 kB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.398e-05/0.3998, allocations: 8.938 kB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.79e-05/0.3998, allocations: 7.531 kB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.882e-05/0.3999, allocations: 64.3 kB / 0.5325 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.313e-05/0.4, allocations: 62.89 kB / 0.5326 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001923/0.4002, allocations: 155.6 kB / 0.5327 GB, free: 11.74 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.4002, allocations: 0 / 0.5327 GB, free: 11.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4002, allocations: 4 kB / 0.5327 GB, free: 11.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.4002, allocations: 0 / 0.5327 GB, free: 11.74 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.0005041/0.4008, allocations: 439.9 kB / 0.5331 GB, free: 11.31 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.4008, allocations: 9.625 kB / 0.5331 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.992e-05/0.4009, allocations: 70.06 kB / 0.5332 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.343e-05/0.401, allocations: 18.38 kB / 0.5332 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002471/0.4012, allocations: 215.4 kB / 0.5334 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/0.4012, allocations: 17.06 kB / 0.5334 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.128e-05/0.4013, allocations: 30.06 kB / 0.5335 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003667/0.4016, allocations: 205.4 kB / 0.5337 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.4017, allocations: 0 / 0.5337 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.209e-05/0.4017, allocations: 9.656 kB / 0.5337 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.4017, allocations: 5.594 kB / 0.5337 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002477/0.402, allocations: 137.3 kB / 0.5338 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006858/0.4027, allocations: 0.514 MB / 0.5343 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.412e-05/0.4028, allocations: 42.7 kB / 0.5344 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.352e-05/0.4028, allocations: 27.88 kB / 0.5344 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.302e-05/0.4029, allocations: 0 / 0.5344 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.4029, allocations: 35.59 kB / 0.5344 GB, free: 10.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.072e-06/0.4029, allocations: 4.906 kB / 0.5344 GB, free: 10.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002325/0.4031, allocations: 77.36 kB / 0.5345 GB, free: 10.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.4032, allocations: 52.66 kB / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.94e-05/0.4033, allocations: 108 kB / 0.5346 GB, free: 10.01 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.4033, allocations: 29.7 kB / 0.5347 GB, free: 9.973 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.338e-05/0.4034, allocations: 146.3 kB / 0.5348 GB, free: 9.836 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.963e-05/0.4034, allocations: 10.03 kB / 0.5348 GB, free: 9.828 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.601e-05/0.4034, allocations: 21.31 kB / 0.5348 GB, free: 9.805 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.4036, allocations: 319.8 kB / 0.5352 GB, free: 9.484 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.324e-05/0.4036, allocations: 11.41 kB / 0.5352 GB, free: 9.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.501e-05/0.4036, allocations: 11.11 kB / 0.5352 GB, free: 9.477 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.683e-05/0.4037, allocations: 32.66 kB / 0.5352 GB, free: 9.457 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.4037, allocations: 1 kB / 0.5352 GB, free: 9.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001207/0.4039, allocations: 63.72 kB / 0.5353 GB, free: 9.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.4039, allocations: 5.281 kB / 0.5353 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.4039, allocations: 4 kB / 0.5353 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.4039, allocations: 0 / 0.5353 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.397e-05/0.404, allocations: 16.92 kB / 0.5353 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.404, allocations: 0 / 0.5353 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.139e-05/0.4041, allocations: 10.5 kB / 0.5353 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.4041, allocations: 1.375 kB / 0.5353 GB, free: 9.391 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.0001499/0.4042, allocations: 143.3 kB / 0.5354 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.438e-05/0.4043, allocations: 1.312 kB / 0.5354 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.936e-05/0.4043, allocations: 13.38 kB / 0.5355 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.4043, allocations: 1.375 kB / 0.5355 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.4043, allocations: 0 / 0.5355 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.4043, allocations: 0 / 0.5355 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003847/0.4047, allocations: 375.1 kB / 0.5358 GB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.4047, allocations: 1.375 kB / 0.5358 GB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.679e-05/0.4048, allocations: 12.3 kB / 0.5358 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.4048, allocations: 4 kB / 0.5358 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.4048, allocations: 5.312 kB / 0.5358 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.4048, allocations: 4 kB / 0.5358 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.156e-05/0.4048, allocations: 3.938 kB / 0.5358 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001607/0.405, allocations: 162.8 kB / 0.536 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.253e-05/0.405, allocations: 78.48 kB / 0.5361 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.405, allocations: 5.375 kB / 0.5361 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.333e-05/0.4051, allocations: 1.375 kB / 0.5361 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.477e-05/0.4051, allocations: 9.297 kB / 0.5361 GB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.447e-06/0.4051, allocations: 5.375 kB / 0.5361 GB, free: 8.598 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.187e-05/0.4052, allocations: 86.16 kB / 0.5362 GB, free: 8.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4052, allocations: 0 / 0.5362 GB, free: 8.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002402/0.4054, allocations: 30.81 kB / 0.5362 GB, free: 8.504 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.0004942/0.4059, allocations: 0.7098 MB / 0.5369 GB, free: 7.812 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001261/0.4061, allocations: 28.67 kB / 0.5369 GB, free: 7.805 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.4061, allocations: 4 kB / 0.5369 GB, free: 7.801 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.751e-05/0.4061, allocations: 20.3 kB / 0.5369 GB, free: 7.793 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002932/0.4064, allocations: 17.97 kB / 0.537 GB, free: 7.781 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.4079, allocations: 1.447 MB / 0.5384 GB, free: 6.461 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003372/0.4082, allocations: 0.7378 MB / 0.5391 GB, free: 5.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.263e-05/0.4083, allocations: 6.5 kB / 0.5391 GB, free: 5.727 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.431e-05/0.4083, allocations: 47.2 kB / 0.5391 GB, free: 5.684 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4084, allocations: 0 / 0.5391 GB, free: 5.684 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01901/0.4274, allocations: 1.949 MB / 0.5411 GB, free: 4.613 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.509/7.937, allocations: 1.906 kB / 0.5411 GB, free: 4.613 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