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.001299/0.001299, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001291/0.001291, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2578/0.2578, allocations: 46.12 MB / 344.3 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002387/0.002387, allocations: 79.88 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3681/0.3705, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002951/0.3735, allocations: 1.556 MB / 0.5321 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002458/0.3737, allocations: 66.78 kB / 0.5322 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.709e-05/0.3738, allocations: 0 / 0.5322 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001473/0.374, allocations: 19.3 kB / 0.5322 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.687e-05/0.374, allocations: 7.922 kB / 0.5322 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001515/0.3742, allocations: 26.95 kB / 0.5322 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000134/0.3743, allocations: 70.94 kB / 0.5323 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002917/0.3746, allocations: 129.4 kB / 0.5324 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.224e-05/0.3747, allocations: 34.39 kB / 0.5325 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.317e-05/0.3748, allocations: 42.19 kB / 0.5325 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.944e-05/0.3748, allocations: 8.875 kB / 0.5325 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.078e-05/0.3748, allocations: 7.812 kB / 0.5325 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.232e-05/0.3749, allocations: 68.81 kB / 0.5326 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001367/0.3751, allocations: 67.5 kB / 0.5326 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002286/0.3753, allocations: 149.1 kB / 0.5328 GB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3753, allocations: 4 kB / 0.5328 GB, free: 11.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3753, allocations: 1.438 kB / 0.5328 GB, free: 11.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.3754, allocations: 0 / 0.5328 GB, free: 11.7 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.0005907/0.3759, allocations: 441.9 kB / 0.5332 GB, free: 11.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.376, allocations: 13.72 kB / 0.5332 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001049/0.3761, allocations: 65.42 kB / 0.5333 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.894e-05/0.3762, allocations: 17.94 kB / 0.5333 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002448/0.3764, allocations: 224.8 kB / 0.5335 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.3764, allocations: 16.78 kB / 0.5335 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.876e-05/0.3765, allocations: 20.91 kB / 0.5335 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003779/0.3769, allocations: 214 kB / 0.5338 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.3769, allocations: 0 / 0.5338 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.699e-05/0.3769, allocations: 14.73 kB / 0.5338 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.3769, allocations: 4.125 kB / 0.5338 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002398/0.3772, allocations: 129.2 kB / 0.5339 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007574/0.3779, allocations: 0.516 MB / 0.5344 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001018/0.3781, allocations: 41.67 kB / 0.5344 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.472e-05/0.3781, allocations: 28.09 kB / 0.5345 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.3782, allocations: 0 / 0.5345 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/0.3782, allocations: 43.88 kB / 0.5345 GB, free: 10.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 9.02e-07/0.3782, allocations: 0 / 0.5345 GB, free: 10.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002778/0.3785, allocations: 78.5 kB / 0.5346 GB, free: 10.12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.3785, allocations: 52.78 kB / 0.5346 GB, free: 10.06 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.164e-05/0.3786, allocations: 107.5 kB / 0.5347 GB, free: 9.957 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.3787, allocations: 25.7 kB / 0.5348 GB, free: 9.926 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.594e-05/0.3787, allocations: 141.8 kB / 0.5349 GB, free: 9.793 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.3788, allocations: 14.66 kB / 0.5349 GB, free: 9.781 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.907e-05/0.3788, allocations: 25.83 kB / 0.5349 GB, free: 9.754 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.379, allocations: 316.2 kB / 0.5352 GB, free: 9.438 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.351e-05/0.379, allocations: 14.86 kB / 0.5352 GB, free: 9.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.5e-05/0.3791, allocations: 6.875 kB / 0.5353 GB, free: 9.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.88e-05/0.3791, allocations: 37.28 kB / 0.5353 GB, free: 9.406 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.3792, allocations: 0 / 0.5353 GB, free: 9.406 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001258/0.3793, allocations: 67.62 kB / 0.5354 GB, free: 9.355 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.3793, allocations: 9.5 kB / 0.5354 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.3793, allocations: 0 / 0.5354 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.3793, allocations: 3.938 kB / 0.5354 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.319e-05/0.3794, allocations: 12.23 kB / 0.5354 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.3794, allocations: 1.688 kB / 0.5354 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.783e-05/0.3795, allocations: 5.312 kB / 0.5354 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.3795, allocations: 1.375 kB / 0.5354 GB, free: 9.34 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.0001242/0.3796, allocations: 143.4 kB / 0.5355 GB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.629e-05/0.3797, allocations: 10.69 kB / 0.5355 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.453e-05/0.3797, allocations: 13.34 kB / 0.5355 GB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.3797, allocations: 0 / 0.5355 GB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.3797, allocations: 0 / 0.5355 GB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3797, allocations: 5.312 kB / 0.5356 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004643/0.3802, allocations: 366.8 kB / 0.5359 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3802, allocations: 0 / 0.5359 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.681e-05/0.3802, allocations: 16.34 kB / 0.5359 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.703e-06/0.3803, allocations: 5.016 kB / 0.5359 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.3803, allocations: 0 / 0.5359 GB, free: 8.812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3803, allocations: 5.594 kB / 0.5359 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.467e-06/0.3803, allocations: 7.922 kB / 0.5359 GB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001767/0.3805, allocations: 151.1 kB / 0.5361 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.954e-05/0.3805, allocations: 86.11 kB / 0.5362 GB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.373e-05/0.3806, allocations: 1.062 kB / 0.5362 GB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.282e-05/0.3806, allocations: 5.688 kB / 0.5362 GB, free: 8.555 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.658e-05/0.3806, allocations: 5.812 kB / 0.5362 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.3807, allocations: 5.375 kB / 0.5362 GB, free: 8.547 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.269e-05/0.3807, allocations: 89.77 kB / 0.5363 GB, free: 8.465 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3807, allocations: 0 / 0.5363 GB, free: 8.465 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000237/0.381, allocations: 29.72 kB / 0.5363 GB, free: 8.449 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.0005687/0.3815, allocations: 0.7113 MB / 0.537 GB, free: 7.758 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001379/0.3817, allocations: 31.52 kB / 0.537 GB, free: 7.746 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3817, allocations: 1.062 kB / 0.537 GB, free: 7.746 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.669e-05/0.3817, allocations: 19.27 kB / 0.537 GB, free: 7.738 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.3821, allocations: 14.84 kB / 0.5371 GB, free: 7.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001622/0.3837, allocations: 1.444 MB / 0.5385 GB, free: 6.406 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003823/0.3841, allocations: 0.7373 MB / 0.5392 GB, free: 5.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.703e-05/0.3842, allocations: 6.75 kB / 0.5392 GB, free: 5.676 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.593e-05/0.3842, allocations: 50.44 kB / 0.5392 GB, free: 5.629 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3842, allocations: 1.094 kB / 0.5392 GB, free: 5.629 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02292/0.4072, allocations: 1.946 MB / 0.5411 GB, free: 4.559 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.766/8.174, allocations: 10.34 kB / 0.5411 GB, free: 4.551 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.csv","/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