Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.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) 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(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00138/0.001381, allocations: 118.8 kB / 17.79 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00138/0.001381, allocations: 202 kB / 18.74 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001775/0.001775, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2704, allocations: 50.53 MB / 408.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003483/0.2739, allocations: 2.037 MB / 410.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002184/0.2761, allocations: 1.274 MB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.2762, allocations: 11.94 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008562/0.2771, allocations: 298.7 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005602/0.2777, allocations: 259.1 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005774/0.2783, allocations: 230.9 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004107/0.2787, allocations: 363.1 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001559/0.2788, allocations: 56.72 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001953/0.279, allocations: 151.4 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001984/0.2792, allocations: 143.4 kB / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.503e-05/0.2793, allocations: 20 kB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000181/0.2795, allocations: 91.88 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.2796, allocations: 79.75 kB / 413.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001582/0.2798, allocations: 139.1 kB / 413.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004532/0.2802, allocations: 361.6 kB / 414.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2802, allocations: 0 / 414.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2802, allocations: 0 / 414.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.2803, allocations: 0 / 414.2 MB, free: 12.03 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.00104/0.2813, allocations: 0.6802 MB / 414.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.2813, allocations: 8.031 kB / 414.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.36e-05/0.2814, allocations: 50.73 kB / 415 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.494e-05/0.2815, allocations: 36.7 kB / 415 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004673/0.282, allocations: 346.6 kB / 415.3 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.282, allocations: 8.375 kB / 415.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.736e-05/0.282, allocations: 11.94 kB / 415.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003111/0.2823, allocations: 148 kB / 415.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.2824, allocations: 7.938 kB / 415.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/0.2824, allocations: 8 kB / 415.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.649e-06/0.2824, allocations: 7.984 kB / 415.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001721/0.2826, allocations: 71.89 kB / 415.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007143/0.2833, allocations: 0.4887 MB / 416.1 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003194/0.2836, allocations: 126.8 kB / 416.2 MB, free: 9.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.2838, allocations: 48.83 kB / 416.2 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.31e-05/0.2838, allocations: 0 / 416.2 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002431/0.284, allocations: 123.2 kB / 416.4 MB, free: 9.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.284, allocations: 0 / 416.4 MB, free: 9.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005025/0.2846, allocations: 221.3 kB / 416.6 MB, free: 9.457 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.93e-05/0.2846, allocations: 106.8 kB / 416.7 MB, free: 9.328 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005414/0.2852, allocations: 453.6 kB / 417.1 MB, free: 8.871 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.297e-05/0.2852, allocations: 33.7 kB / 417.2 MB, free: 8.832 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.2854, allocations: 175.9 kB / 417.3 MB, free: 8.656 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.221e-05/0.2854, allocations: 35.69 kB / 417.4 MB, free: 8.621 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.642e-05/0.2855, allocations: 45.7 kB / 417.4 MB, free: 8.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.2857, allocations: 350.8 kB / 417.8 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.2858, allocations: 47.91 kB / 417.8 MB, free: 8.172 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001658/0.286, allocations: 104.2 kB / 417.9 MB, free: 8.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002279/0.2862, allocations: 105.8 kB / 418 MB, free: 7.941 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2862, allocations: 0 / 418 MB, free: 7.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003384/0.2866, allocations: 181.3 kB / 418.2 MB, free: 7.758 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.2866, allocations: 11.88 kB / 418.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.2866, allocations: 4 kB / 418.2 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.2866, allocations: 0 / 418.2 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.2867, allocations: 23.98 kB / 418.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.2867, allocations: 3.984 kB / 418.2 MB, free: 7.715 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.2869, allocations: 27.94 kB / 418.3 MB, free: 7.688 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.2869, allocations: 4 kB / 418.3 MB, free: 7.684 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001794/0.2871, allocations: 175.5 kB / 418.4 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.849e-05/0.2871, allocations: 31.75 kB / 418.5 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.83e-05/0.2872, allocations: 38.97 kB / 418.5 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.2872, allocations: 0 / 418.5 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2872, allocations: 0 / 418.5 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.2872, allocations: 0 / 418.5 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003213/0.2875, allocations: 313.4 kB / 418.8 MB, free: 7.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.2876, allocations: 4 kB / 418.8 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.578e-05/0.2876, allocations: 4 kB / 418.8 MB, free: 7.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.2876, allocations: 7.938 kB / 418.8 MB, free: 7.066 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.2876, allocations: 7.938 kB / 418.8 MB, free: 7.059 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.2876, allocations: 0 / 418.8 MB, free: 7.059 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2876, allocations: 0 / 418.8 MB, free: 7.059 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000357/0.288, allocations: 200.8 kB / 419 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.514e-05/0.2881, allocations: 124.8 kB / 419.1 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.908e-05/0.2882, allocations: 4 kB / 419.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.656e-05/0.2882, allocations: 7.984 kB / 419.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.936e-05/0.2883, allocations: 15.98 kB / 419.2 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.2883, allocations: 4 kB / 419.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003779/0.2887, allocations: 331.1 kB / 419.5 MB, free: 6.352 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2887, allocations: 3.938 kB / 419.5 MB, free: 6.348 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002848/0.289, allocations: 55.92 kB / 419.6 MB, free: 6.293 MB / 334.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: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.002079/0.2911, allocations: 1.064 MB / 420.6 MB, free: 5.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003201/0.2914, allocations: 119.9 kB / 420.7 MB, free: 5.223 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2915, allocations: 128 / 420.7 MB, free: 5.223 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001305/0.2916, allocations: 63.92 kB / 420.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004274/0.292, allocations: 77.06 kB / 420.9 MB, free: 5.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003718/0.2958, allocations: 2.869 MB / 423.7 MB, free: 2.117 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004617/0.2962, allocations: 0.7714 MB / 424.5 MB, free: 1.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001246/0.2964, allocations: 46.25 kB / 424.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001468/0.2965, allocations: 103.3 kB / 424.7 MB, free: 1.176 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2965, allocations: 0 / 424.7 MB, free: 1.176 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03038/0.3269, allocations: 7.338 MB / 432 MB, free: 9.934 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.724/9.051, allocations: 4 kB / 432 MB, free: 9.93 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches