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.001197/0.001197, allocations: 112.5 kB / 18.36 MB, free: 4.84 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.001246/0.001246, allocations: 184.5 kB / 19.29 MB, free: 3.918 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.479/1.479, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001195/0.001195, allocations: 52.2 kB / 329.1 MB, free: 3.355 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09558/0.09678, allocations: 46.62 MB / 375.7 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003422/0.1003, allocations: 1.982 MB / 377.7 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001708/0.102, allocations: 1.057 MB / 378.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001507/0.1021, allocations: 0 / 378.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008794/0.1031, allocations: 311.1 kB / 379.1 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004732/0.1035, allocations: 203.2 kB / 379.3 MB, free: 1.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007099/0.1043, allocations: 271.4 kB / 379.6 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004632/0.1047, allocations: 339.2 kB / 379.9 MB, free: 472 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001764/0.1049, allocations: 64.36 kB / 379.9 MB, free: 408 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002572/0.1052, allocations: 143.4 kB / 380.1 MB, free: 264 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000229/0.1054, allocations: 139.4 kB / 380.2 MB, free: 124 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.007e-05/0.1055, allocations: 20 kB / 380.2 MB, free: 104 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002098/0.1057, allocations: 79.89 kB / 380.3 MB, free: 24 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2049/0.3106, allocations: 87.33 kB / 380.4 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002034/0.3109, allocations: 128.8 kB / 380.5 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006168/0.3115, allocations: 346.2 kB / 380.9 MB, free: 10.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3115, allocations: 0 / 380.9 MB, free: 10.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3115, allocations: 0 / 380.9 MB, free: 10.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.273e-06/0.3115, allocations: 1.375 kB / 380.9 MB, free: 10.12 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.0009546/0.3125, allocations: 0.6621 MB / 381.5 MB, free: 9.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.3125, allocations: 9.688 kB / 381.5 MB, free: 9.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.142e-05/0.3126, allocations: 31.59 kB / 381.6 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003776/0.313, allocations: 332.2 kB / 381.9 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.313, allocations: 8.859 kB / 381.9 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.702e-05/0.3131, allocations: 15.72 kB / 381.9 MB, free: 9.336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002883/0.3134, allocations: 151.4 kB / 382.1 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.3134, allocations: 0 / 382.1 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.82e-05/0.3134, allocations: 5.156 kB / 382.1 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.3134, allocations: 3.734 kB / 382.1 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000173/0.3136, allocations: 67.44 kB / 382.1 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006331/0.3142, allocations: 0.4886 MB / 382.6 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003048/0.3146, allocations: 130 kB / 382.8 MB, free: 8.969 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.3147, allocations: 51.23 kB / 382.8 MB, free: 8.961 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/0.3147, allocations: 5.938 kB / 382.8 MB, free: 8.961 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002208/0.3149, allocations: 115.1 kB / 382.9 MB, free: 8.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.3149, allocations: 0 / 382.9 MB, free: 8.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005318/0.3155, allocations: 222.1 kB / 383.1 MB, free: 8.855 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.3155, allocations: 105.7 kB / 383.2 MB, free: 8.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005687/0.3161, allocations: 430.5 kB / 383.7 MB, free: 8.613 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.3161, allocations: 32.11 kB / 383.7 MB, free: 8.582 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.3163, allocations: 170.2 kB / 383.9 MB, free: 8.492 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.29e-05/0.3163, allocations: 38.42 kB / 383.9 MB, free: 8.469 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.443e-05/0.3164, allocations: 44.62 kB / 383.9 MB, free: 8.453 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.312e-05/0.3165, allocations: 343.9 kB / 384.3 MB, free: 8.141 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.3166, allocations: 45.92 kB / 384.3 MB, free: 8.141 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.3167, allocations: 103.3 kB / 384.4 MB, free: 8.086 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001922/0.3169, allocations: 107.5 kB / 384.5 MB, free: 8.059 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.317, allocations: 0 / 384.5 MB, free: 8.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003054/0.3173, allocations: 183.1 kB / 384.7 MB, free: 8.004 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.3173, allocations: 8.312 kB / 384.7 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.3173, allocations: 1.906 kB / 384.7 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.3173, allocations: 3.938 kB / 384.7 MB, free: 8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.3174, allocations: 22.3 kB / 384.7 MB, free: 8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.914e-06/0.3175, allocations: 3.812 kB / 384.7 MB, free: 8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.835e-05/0.3176, allocations: 18.42 kB / 384.8 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.3176, allocations: 4.25 kB / 384.8 MB, free: 7.996 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.0001342/0.3177, allocations: 175.5 kB / 384.9 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.059e-05/0.3178, allocations: 28.94 kB / 385 MB, free: 7.859 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.106e-05/0.3178, allocations: 39.95 kB / 385 MB, free: 7.848 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.3179, allocations: 2.25 kB / 385 MB, free: 7.848 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3179, allocations: 0 / 385 MB, free: 7.848 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3179, allocations: 2.359 kB / 385 MB, free: 7.848 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002525/0.3181, allocations: 297.5 kB / 385.3 MB, free: 7.656 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3181, allocations: 2.25 kB / 385.3 MB, free: 7.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.749e-05/0.3182, allocations: 12.03 kB / 385.3 MB, free: 7.652 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.3182, allocations: 6.859 kB / 385.3 MB, free: 7.648 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.3182, allocations: 9.203 kB / 385.3 MB, free: 7.645 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.3182, allocations: 2.094 kB / 385.3 MB, free: 7.645 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3182, allocations: 1.953 kB / 385.3 MB, free: 7.645 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003218/0.3186, allocations: 206.5 kB / 385.5 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.189e-05/0.3186, allocations: 101.6 kB / 385.6 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.028e-05/0.3187, allocations: 10.94 kB / 385.7 MB, free: 7.449 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.239e-05/0.3188, allocations: 11.64 kB / 385.7 MB, free: 7.445 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.028e-05/0.3188, allocations: 13.61 kB / 385.7 MB, free: 7.445 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.047e-05/0.3189, allocations: 12.22 kB / 385.7 MB, free: 7.445 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003404/0.3192, allocations: 310.7 kB / 386 MB, free: 7.363 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3192, allocations: 0 / 386 MB, free: 7.363 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003012/0.3195, allocations: 56.62 kB / 386 MB, free: 7.355 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.000942/0.3205, allocations: 417.4 kB / 386.5 MB, free: 7.062 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002936/0.3208, allocations: 125 kB / 386.6 MB, free: 7.055 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3208, allocations: 0 / 386.6 MB, free: 7.055 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.3209, allocations: 65.05 kB / 386.6 MB, free: 7.051 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004183/0.3213, allocations: 86.44 kB / 386.7 MB, free: 7.027 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007535/0.3221, allocations: 0.5125 MB / 387.2 MB, free: 6.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/0.3223, allocations: 0.7748 MB / 388 MB, free: 6.07 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.723e-05/0.3224, allocations: 30.28 kB / 388 MB, free: 6.062 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3224, allocations: 0 / 388 MB, free: 6.062 MB / 318.1 MB Notification: Performance of Templates: time 0.007931/0.3304, allocations: 4.182 MB / 392.2 MB, free: 5.57 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/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