Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 110.5 kB / 17.73 MB, free: 5.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.00124, allocations: 187 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.554/1.554, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001765, allocations: 48.31 kB / 328.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1161, allocations: 46.62 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004084/0.1202, allocations: 1.978 MB / 377.1 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002509/0.1228, allocations: 1.061 MB / 378.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002243/0.123, allocations: 7.938 kB / 378.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001085/0.1241, allocations: 307.2 kB / 378.5 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006678/0.1248, allocations: 199.2 kB / 378.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000795/0.1256, allocations: 267.4 kB / 378.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004649/0.1261, allocations: 339.2 kB / 379.3 MB, free: 424 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.1263, allocations: 60.34 kB / 379.3 MB, free: 364 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002317/0.1265, allocations: 147.4 kB / 379.5 MB, free: 216 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002057/0.1267, allocations: 143.4 kB / 379.6 MB, free: 72 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.502e-05/0.1268, allocations: 20 kB / 379.6 MB, free: 52 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2631/0.3899, allocations: 78.3 kB / 379.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002321/0.3902, allocations: 87.55 kB / 379.8 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002048/0.3904, allocations: 130.8 kB / 379.9 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006339/0.391, allocations: 344.4 kB / 380.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.391, allocations: 0 / 380.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3911, allocations: 1.375 kB / 380.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.3911, allocations: 0 / 380.3 MB, free: 10.07 MB / 318.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.0009778/0.3921, allocations: 0.6741 MB / 380.9 MB, free: 9.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.3921, allocations: 10.97 kB / 380.9 MB, free: 9.516 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.533e-05/0.3922, allocations: 38.55 kB / 381 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004765/0.3927, allocations: 332.9 kB / 381.3 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.3927, allocations: 7.906 kB / 381.3 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.536e-05/0.3927, allocations: 16.12 kB / 381.3 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003158/0.3931, allocations: 149.9 kB / 381.5 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.3931, allocations: 2.031 kB / 381.5 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.07e-05/0.3931, allocations: 5.297 kB / 381.5 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.3931, allocations: 2.75 kB / 381.5 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001781/0.3933, allocations: 69.12 kB / 381.6 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000686/0.394, allocations: 0.4942 MB / 382 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002999/0.3943, allocations: 129.8 kB / 382.2 MB, free: 8.887 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.3944, allocations: 50 kB / 382.2 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.3945, allocations: 3.5 kB / 382.2 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002324/0.3947, allocations: 110.9 kB / 382.3 MB, free: 8.832 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.502e-06/0.3947, allocations: 0 / 382.3 MB, free: 8.832 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005782/0.3953, allocations: 223.4 kB / 382.6 MB, free: 8.777 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.3954, allocations: 105.8 kB / 382.7 MB, free: 8.652 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005939/0.396, allocations: 430.7 kB / 383.1 MB, free: 8.535 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.396, allocations: 33.41 kB / 383.1 MB, free: 8.504 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.3961, allocations: 170.1 kB / 383.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.395e-05/0.3962, allocations: 37.52 kB / 383.3 MB, free: 8.391 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.53e-05/0.3963, allocations: 45.02 kB / 383.4 MB, free: 8.375 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.649e-05/0.3964, allocations: 345.2 kB / 383.7 MB, free: 8.062 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.3965, allocations: 39.48 kB / 383.7 MB, free: 8.062 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001342/0.3966, allocations: 109 kB / 383.8 MB, free: 8.008 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002144/0.3968, allocations: 101.6 kB / 383.9 MB, free: 7.984 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3968, allocations: 5.156 kB / 383.9 MB, free: 7.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002968/0.3972, allocations: 184.1 kB / 384.1 MB, free: 7.922 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.3972, allocations: 5.594 kB / 384.1 MB, free: 7.922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3972, allocations: 0.9844 kB / 384.1 MB, free: 7.922 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.3972, allocations: 7.266 kB / 384.1 MB, free: 7.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.3973, allocations: 27.95 kB / 384.2 MB, free: 7.918 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.3974, allocations: 0.875 kB / 384.2 MB, free: 7.918 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.758e-05/0.3975, allocations: 22.7 kB / 384.2 MB, free: 7.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.3975, allocations: 8.938 kB / 384.2 MB, free: 7.906 MB / 318.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.0001365/0.3976, allocations: 169.8 kB / 384.4 MB, free: 7.789 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.565e-05/0.3977, allocations: 29.69 kB / 384.4 MB, free: 7.773 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.682e-05/0.3977, allocations: 42.06 kB / 384.4 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.3978, allocations: 1.562 kB / 384.4 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.3978, allocations: 1 kB / 384.4 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3978, allocations: 0.9844 kB / 384.4 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002601/0.398, allocations: 294.8 kB / 384.7 MB, free: 7.574 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.398, allocations: 6.391 kB / 384.7 MB, free: 7.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.805e-05/0.3981, allocations: 12.89 kB / 384.7 MB, free: 7.566 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3981, allocations: 0 / 384.7 MB, free: 7.566 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.569e-05/0.3981, allocations: 10.81 kB / 384.8 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.3981, allocations: 1.594 kB / 384.8 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3981, allocations: 2.531 kB / 384.8 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003303/0.3985, allocations: 207.9 kB / 385 MB, free: 7.477 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.212e-05/0.3985, allocations: 106.9 kB / 385.1 MB, free: 7.363 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.312e-05/0.3986, allocations: 14.52 kB / 385.1 MB, free: 7.355 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.29e-05/0.3987, allocations: 7.219 kB / 385.1 MB, free: 7.355 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.663e-05/0.3987, allocations: 14.81 kB / 385.1 MB, free: 7.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.108e-05/0.3988, allocations: 8.734 kB / 385.1 MB, free: 7.355 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003263/0.3991, allocations: 311.3 kB / 385.4 MB, free: 7.273 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3991, allocations: 0 / 385.4 MB, free: 7.273 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002903/0.3994, allocations: 53 kB / 385.5 MB, free: 7.27 MB / 318.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.0009255/0.4003, allocations: 423.7 kB / 385.9 MB, free: 6.965 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003039/0.4006, allocations: 122.8 kB / 386 MB, free: 6.961 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.4007, allocations: 3.938 kB / 386 MB, free: 6.957 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001302/0.4008, allocations: 62.17 kB / 386.1 MB, free: 6.953 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004301/0.4012, allocations: 76.61 kB / 386.1 MB, free: 6.941 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007538/0.402, allocations: 498.4 kB / 386.6 MB, free: 6.707 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002469/0.4023, allocations: 0.7747 MB / 387.4 MB, free: 6.008 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001308/0.4024, allocations: 46 kB / 387.4 MB, free: 5.996 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.726e-05/0.4025, allocations: 27.03 kB / 387.5 MB, free: 5.988 MB / 318.1 MB Notification: Performance of SimCode: time 3.51e-07/0.4025, allocations: 1.25 kB / 387.5 MB, free: 5.988 MB / 318.1 MB Notification: Performance of Templates: time 0.009698/0.4122, allocations: 3.865 MB / 391.3 MB, free: 5.625 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches