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.001306/0.001306, allocations: 110.5 kB / 17.73 MB, free: 5.312 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.001302/0.001302, allocations: 187 kB / 18.66 MB, free: 4.391 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.478/1.478, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001022/0.001022, allocations: 55.92 kB / 328.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09706/0.09809, allocations: 46.61 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003416/0.1015, allocations: 1.993 MB / 377.1 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002076/0.1036, allocations: 1.049 MB / 378.2 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000174/0.1038, allocations: 7.938 kB / 378.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009184/0.1048, allocations: 311.2 kB / 378.5 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007336/0.1056, allocations: 211.2 kB / 378.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001006/0.1066, allocations: 255.5 kB / 378.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008335/0.1074, allocations: 347.1 kB / 379.3 MB, free: 416 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002904/0.1077, allocations: 56.36 kB / 379.3 MB, free: 360 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004748/0.1082, allocations: 139.5 kB / 379.5 MB, free: 220 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003777/0.1086, allocations: 155.4 kB / 379.6 MB, free: 64 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.689e-05/0.1087, allocations: 20 kB / 379.6 MB, free: 44 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1988/0.3075, allocations: 72.11 kB / 379.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002313/0.3078, allocations: 88.27 kB / 379.8 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002389/0.308, allocations: 129.8 kB / 379.9 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000691/0.3087, allocations: 345.2 kB / 380.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3088, allocations: 1.312 kB / 380.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3088, allocations: 0 / 380.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.342e-05/0.3088, allocations: 0 / 380.3 MB, free: 10.11 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.00102/0.3098, allocations: 0.6632 MB / 380.9 MB, free: 9.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.3099, allocations: 9.5 kB / 380.9 MB, free: 9.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.945e-05/0.3099, allocations: 35.83 kB / 381 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003689/0.3103, allocations: 330.1 kB / 381.3 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.3103, allocations: 9.156 kB / 381.3 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.776e-05/0.3104, allocations: 12.67 kB / 381.3 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002655/0.3106, allocations: 156.4 kB / 381.5 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.3107, allocations: 0 / 381.5 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/0.3107, allocations: 2.125 kB / 381.5 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.3107, allocations: 2.75 kB / 381.5 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001552/0.3109, allocations: 77.66 kB / 381.5 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005648/0.3114, allocations: 498.5 kB / 382 MB, free: 8.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002874/0.3117, allocations: 130 kB / 382.2 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.3118, allocations: 54.67 kB / 382.2 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/0.3119, allocations: 1.719 kB / 382.2 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002018/0.3121, allocations: 118 kB / 382.3 MB, free: 8.891 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.3121, allocations: 0 / 382.3 MB, free: 8.891 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004964/0.3126, allocations: 218 kB / 382.5 MB, free: 8.836 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.3126, allocations: 109.8 kB / 382.6 MB, free: 8.711 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005738/0.3132, allocations: 431.8 kB / 383.1 MB, free: 8.594 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.21e-05/0.3132, allocations: 32.55 kB / 383.1 MB, free: 8.562 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.3134, allocations: 165.7 kB / 383.3 MB, free: 8.473 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.046e-05/0.3134, allocations: 44.12 kB / 383.3 MB, free: 8.449 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.951e-05/0.3135, allocations: 41.64 kB / 383.3 MB, free: 8.434 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.73e-05/0.3136, allocations: 342.2 kB / 383.7 MB, free: 8.121 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.3137, allocations: 46.59 kB / 383.7 MB, free: 8.121 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001613/0.3138, allocations: 103.6 kB / 383.8 MB, free: 8.066 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000179/0.314, allocations: 101.6 kB / 383.9 MB, free: 8.043 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.314, allocations: 3.969 kB / 383.9 MB, free: 8.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002873/0.3143, allocations: 180.1 kB / 384.1 MB, free: 7.988 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.3144, allocations: 6.125 kB / 384.1 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.3144, allocations: 0 / 384.1 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.3144, allocations: 5.938 kB / 384.1 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.3145, allocations: 26.59 kB / 384.1 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.3145, allocations: 5.438 kB / 384.1 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.48e-05/0.3146, allocations: 15.75 kB / 384.2 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/0.3147, allocations: 9.922 kB / 384.2 MB, free: 7.977 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.0001321/0.3148, allocations: 164.2 kB / 384.3 MB, free: 7.859 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.269e-05/0.3148, allocations: 33.61 kB / 384.4 MB, free: 7.844 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.876e-05/0.3149, allocations: 39.17 kB / 384.4 MB, free: 7.832 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.3149, allocations: 2.75 kB / 384.4 MB, free: 7.832 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.3149, allocations: 4 kB / 384.4 MB, free: 7.828 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.315, allocations: 2.234 kB / 384.4 MB, free: 7.828 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002684/0.3152, allocations: 299.1 kB / 384.7 MB, free: 7.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3152, allocations: 3.938 kB / 384.7 MB, free: 7.633 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.711e-05/0.3153, allocations: 8.109 kB / 384.7 MB, free: 7.633 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3153, allocations: 4.906 kB / 384.7 MB, free: 7.633 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.3153, allocations: 7.469 kB / 384.7 MB, free: 7.629 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.3153, allocations: 1.156 kB / 384.7 MB, free: 7.629 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3153, allocations: 0 / 384.7 MB, free: 7.629 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003313/0.3157, allocations: 207.7 kB / 384.9 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.177e-05/0.3157, allocations: 101.3 kB / 385 MB, free: 7.438 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.444e-05/0.3158, allocations: 10.08 kB / 385 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.863e-05/0.3159, allocations: 10.08 kB / 385.1 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.543e-05/0.3159, allocations: 15.3 kB / 385.1 MB, free: 7.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.066e-05/0.316, allocations: 9.953 kB / 385.1 MB, free: 7.434 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003159/0.3163, allocations: 311.5 kB / 385.4 MB, free: 7.352 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3163, allocations: 0 / 385.4 MB, free: 7.352 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000286/0.3166, allocations: 60.62 kB / 385.4 MB, free: 7.34 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.0008836/0.3175, allocations: 422.9 kB / 385.9 MB, free: 7.043 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002947/0.3178, allocations: 123.7 kB / 386 MB, free: 7.035 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3178, allocations: 0 / 386 MB, free: 7.035 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.3179, allocations: 66.02 kB / 386 MB, free: 7.031 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004235/0.3183, allocations: 81.86 kB / 386.1 MB, free: 7.016 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006889/0.319, allocations: 483 kB / 386.6 MB, free: 6.793 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002221/0.3193, allocations: 0.7684 MB / 387.4 MB, free: 6.098 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.3194, allocations: 44.2 kB / 387.4 MB, free: 6.086 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.876e-05/0.3195, allocations: 28.98 kB / 387.4 MB, free: 6.078 MB / 318.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3195, allocations: 1.062 kB / 387.4 MB, free: 6.078 MB / 318.1 MB Notification: Performance of Templates: time 0.008343/0.3278, allocations: 3.871 MB / 391.3 MB, free: 5.703 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